gcloud builds log - stream the logs for a build
gcloud builds log BUILD [--region=REGION] [--stream] [GCLOUD_WIDE_FLAG ...]
Stream the logs for a build.
To stream logs for in progress build 123-456-789:
$ gcloud builds log --stream `123-456-789`
To display logs for a completed build 098-765-432:
$ gcloud builds log `098-765-432`
- BUILD
The build whose logs shall be printed. The ID of the build is printed at the end of the build submission process, or in the ID column when listing builds.
- --region=REGION
The region of the Cloud Build Service to use. Must be set to a supported region name (e.g. us-central1). If unset, builds/region, which is the default region to use when working with Cloud Build resources, is used. If builds/region is unset, region is set to global.
- --stream
If a build is ongoing, stream the logs to stdout until the build completes.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
These variants are also available:
$ gcloud alpha builds log
$ gcloud beta builds log