此内容没有您所选择的语言版本。
Chapter 1. Logging
When a build fails or behaves unexpectedly, accessing detailed logs can help you identify the issue. The logs provide information about what happened during the build run.
1.1. Viewing logs 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can view the logs of a build run to identify any runtime errors and to resolve them.
Prerequisites
-
You have installed the
ocCLI. -
Optional: You have installed the
shpCLI.
Procedure
View logs of a build run. You can do so by using the
ocCLI or theshpCLI.oc logs <buildrun_resource_name>
$ oc logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow shp buildrun logs <buildrun_resource_name>
$ shp buildrun logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow