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

Commit 0ef62e5

Browse files
feat: Add allow_failure, exit_code, and allow_exit_code to BuildStep 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: https://github.com/googleapis/googleapis-gen/commit/c6550a66efe7595832473efe51a58ddd0a05c2d8 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>
1 parent 25100bf commit 0ef62e5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

google/cloud/devtools/cloudbuild_v1/types/cloudbuild.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,22 @@ class BuildStep(proto.Message):
474474
this time, build step status is only updated on
475475
build completion; step status is not updated in
476476
real-time as the build progresses.
477+
allow_failure (bool):
478+
Allow this build step to fail without failing the entire
479+
build.
480+
481+
If false, the entire build will fail if this step fails.
482+
Otherwise, the build will succeed, but this step will still
483+
have a failure status. Error information will be reported in
484+
the failure_detail field.
485+
exit_code (int):
486+
Output only. Return code from running the
487+
step.
488+
allow_exit_codes (Sequence[int]):
489+
Allow this build step to fail without failing the entire
490+
build if and only if the exit code is one of the specified
491+
codes. If allow_failure is also specified, this field will
492+
take precedence.
477493
script (str):
478494
A shell script to be executed in the step.
479495
When script is provided, the user cannot specify
@@ -537,6 +553,18 @@ class BuildStep(proto.Message):
537553
number=12,
538554
enum="Build.Status",
539555
)
556+
allow_failure = proto.Field(
557+
proto.BOOL,
558+
number=14,
559+
)
560+
exit_code = proto.Field(
561+
proto.INT32,
562+
number=16,
563+
)
564+
allow_exit_codes = proto.RepeatedField(
565+
proto.INT32,
566+
number=18,
567+
)
540568
script = proto.Field(
541569
proto.STRING,
542570
number=19,

0 commit comments

Comments
 (0)