Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
feat: Add allow_failure, exit_code, and allow_exit_code to BuildStep …
Browse files Browse the repository at this point in the history
…message (#351)

* feat: Add allow_failure, exit_code, and allow_exit_code to BuildStep message

Committer: @arvinddayal
PiperOrigin-RevId: 484308212

Source-Link: googleapis/googleapis@bc84ad5

Source-Link: googleapis/googleapis-gen@c6550a6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzY1NTBhNjZlZmU3NTk1ODMyNDczZWZlNTFhNThkZGQwYTA1YzJkOCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 28, 2022
1 parent 25100bf commit 0ef62e5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions google/cloud/devtools/cloudbuild_v1/types/cloudbuild.py
Expand Up @@ -474,6 +474,22 @@ class BuildStep(proto.Message):
this time, build step status is only updated on
build completion; step status is not updated in
real-time as the build progresses.
allow_failure (bool):
Allow this build step to fail without failing the entire
build.
If false, the entire build will fail if this step fails.
Otherwise, the build will succeed, but this step will still
have a failure status. Error information will be reported in
the failure_detail field.
exit_code (int):
Output only. Return code from running the
step.
allow_exit_codes (Sequence[int]):
Allow this build step to fail without failing the entire
build if and only if the exit code is one of the specified
codes. If allow_failure is also specified, this field will
take precedence.
script (str):
A shell script to be executed in the step.
When script is provided, the user cannot specify
Expand Down Expand Up @@ -537,6 +553,18 @@ class BuildStep(proto.Message):
number=12,
enum="Build.Status",
)
allow_failure = proto.Field(
proto.BOOL,
number=14,
)
exit_code = proto.Field(
proto.INT32,
number=16,
)
allow_exit_codes = proto.RepeatedField(
proto.INT32,
number=18,
)
script = proto.Field(
proto.STRING,
number=19,
Expand Down

0 comments on commit 0ef62e5

Please sign in to comment.