Este conteúdo não está disponível no idioma selecionado.
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 Copiar o linkLink copiado para a área de transferência!
You can view the logs of a build run to identify any runtime errors and to resolve them.
Prerequisites
-
You have installed the
oc
CLI. -
Optional: You have installed the
shp
CLI.
Procedure
View logs of a build run by using one of the CLIs:
Using
oc
CLIoc logs <buildrun_resource_name>
$ oc logs <buildrun_resource_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Using
shp
CLIshp buildrun logs <buildrun_resource_name>
$ shp buildrun logs <buildrun_resource_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow