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

feat: Add allow_failure, exit_code, and allow_exit_code to BuildStep message #351

Merged
merged 2 commits into from Oct 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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