Skip to content
This repository has been archived by the owner on Dec 31, 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 21, 2021
1 parent 2ea98bd commit 76564e8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions google/cloud/devtools/cloudbuild_v1/types/cloudbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ class Build(proto.Message):
warnings (Sequence[google.cloud.devtools.cloudbuild_v1.types.Build.Warning]):
Output only. Non-fatal problems encountered
during the execution of the build.
failure_info (google.cloud.devtools.cloudbuild_v1.types.Build.FailureInfo):
Output only. Contains information about the
build when status=FAILURE.
"""

class Status(proto.Enum):
Expand Down Expand Up @@ -620,6 +623,33 @@ class Priority(proto.Enum):
text = proto.Field(proto.STRING, number=1,)
priority = proto.Field(proto.ENUM, number=2, enum="Build.Warning.Priority",)

class FailureInfo(proto.Message):
r"""A fatal problem encountered during the execution of the
build.
Attributes:
type_ (google.cloud.devtools.cloudbuild_v1.types.Build.FailureInfo.FailureType):
The name of the failure.
detail (str):
Explains the failure issue in more detail
using hard-coded text.
"""

class FailureType(proto.Enum):
r"""The name of a fatal problem encountered during the execution
of the build.
"""
FAILURE_TYPE_UNSPECIFIED = 0
PUSH_FAILED = 1
PUSH_IMAGE_NOT_FOUND = 2
PUSH_NOT_AUTHORIZED = 3
LOGGING_FAILURE = 4
USER_BUILD_STEP = 5
FETCH_SOURCE_FAILED = 6

type_ = proto.Field(proto.ENUM, number=1, enum="Build.FailureInfo.FailureType",)
detail = proto.Field(proto.STRING, number=2,)

name = proto.Field(proto.STRING, number=45,)
id = proto.Field(proto.STRING, number=1,)
project_id = proto.Field(proto.STRING, number=16,)
Expand Down Expand Up @@ -649,6 +679,7 @@ class Priority(proto.Enum):
service_account = proto.Field(proto.STRING, number=42,)
available_secrets = proto.Field(proto.MESSAGE, number=47, message="Secrets",)
warnings = proto.RepeatedField(proto.MESSAGE, number=49, message=Warning,)
failure_info = proto.Field(proto.MESSAGE, number=51, message=FailureInfo,)


class Artifacts(proto.Message):
Expand Down

0 comments on commit 76564e8

Please sign in to comment.