This repository was archived by the owner on Dec 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
google/cloud/devtools/cloudbuild_v1/types Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,22 @@ class BuildStep(proto.Message):
474
474
this time, build step status is only updated on
475
475
build completion; step status is not updated in
476
476
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.
477
493
script (str):
478
494
A shell script to be executed in the step.
479
495
When script is provided, the user cannot specify
@@ -537,6 +553,18 @@ class BuildStep(proto.Message):
537
553
number = 12 ,
538
554
enum = "Build.Status" ,
539
555
)
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
+ )
540
568
script = proto .Field (
541
569
proto .STRING ,
542
570
number = 19 ,
You can’t perform that action at this time.
0 commit comments