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

feat: Implementation of Build Failure Info: - Added message FailureInfo field #255

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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