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

Commit

Permalink
feat: Implementation of Build Failure Info: - Added message FailureIn…
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Jul 22, 2021
1 parent 2e5b3f5 commit 6f115e2
Show file tree
Hide file tree
Showing 4 changed files with 484 additions and 0 deletions.
37 changes: 37 additions & 0 deletions protos/google/devtools/cloudbuild/v1/cloudbuild.proto
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,40 @@ message Build {
Priority priority = 2;
}

// A fatal problem encountered during the execution of the build.
message FailureInfo {
// The name of a fatal problem encountered during the execution of the
// build.
enum FailureType {
// Type unspecified
FAILURE_TYPE_UNSPECIFIED = 0;

// Unable to push the image to the repository.
PUSH_FAILED = 1;

// Final image not found.
PUSH_IMAGE_NOT_FOUND = 2;

// Unauthorized push of the final image.
PUSH_NOT_AUTHORIZED = 3;

// Backend logging failures. Should retry.
LOGGING_FAILURE = 4;

// A build step has failed.
USER_BUILD_STEP = 5;

// The source fetching has failed.
FETCH_SOURCE_FAILED = 6;
}

// The name of the failure.
FailureType type = 1;

// Explains the failure issue in more detail using hard-coded text.
string detail = 2;
}

// Possible status of a build or build step.
enum Status {
// Status of the build is unknown.
Expand Down Expand Up @@ -842,6 +876,9 @@ message Build {
// Output only. Non-fatal problems encountered during the execution of the
// build.
repeated Warning warnings = 49 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Contains information about the build when status=FAILURE.
FailureInfo failure_info = 51 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Artifacts produced by a build that should be uploaded upon
Expand Down
116 changes: 116 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f115e2

Please sign in to comment.