Skip to content

Commit 3c54ae6

Browse files
feat: Implementation of Build Failure Info: - Added message FailureInfo field (#255)
PiperOrigin-RevId: 385847244 Source-Link: googleapis/googleapis@f84d1e2 Source-Link: googleapis/googleapis-gen@ff9cf56
1 parent 2b69923 commit 3c54ae6

4 files changed

Lines changed: 484 additions & 0 deletions

File tree

packages/google-devtools-cloudbuild/protos/google/devtools/cloudbuild/v1/cloudbuild.proto

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,40 @@ message Build {
681681
Priority priority = 2;
682682
}
683683

684+
// A fatal problem encountered during the execution of the build.
685+
message FailureInfo {
686+
// The name of a fatal problem encountered during the execution of the
687+
// build.
688+
enum FailureType {
689+
// Type unspecified
690+
FAILURE_TYPE_UNSPECIFIED = 0;
691+
692+
// Unable to push the image to the repository.
693+
PUSH_FAILED = 1;
694+
695+
// Final image not found.
696+
PUSH_IMAGE_NOT_FOUND = 2;
697+
698+
// Unauthorized push of the final image.
699+
PUSH_NOT_AUTHORIZED = 3;
700+
701+
// Backend logging failures. Should retry.
702+
LOGGING_FAILURE = 4;
703+
704+
// A build step has failed.
705+
USER_BUILD_STEP = 5;
706+
707+
// The source fetching has failed.
708+
FETCH_SOURCE_FAILED = 6;
709+
}
710+
711+
// The name of the failure.
712+
FailureType type = 1;
713+
714+
// Explains the failure issue in more detail using hard-coded text.
715+
string detail = 2;
716+
}
717+
684718
// Possible status of a build or build step.
685719
enum Status {
686720
// Status of the build is unknown.
@@ -842,6 +876,9 @@ message Build {
842876
// Output only. Non-fatal problems encountered during the execution of the
843877
// build.
844878
repeated Warning warnings = 49 [(google.api.field_behavior) = OUTPUT_ONLY];
879+
880+
// Output only. Contains information about the build when status=FAILURE.
881+
FailureInfo failure_info = 51 [(google.api.field_behavior) = OUTPUT_ONLY];
845882
}
846883

847884
// Artifacts produced by a build that should be uploaded upon

packages/google-devtools-cloudbuild/protos/protos.d.ts

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)