Class: Google::Cloud::Build::V1::Build
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::Build
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
A build resource in the Cloud Build API.
At a high level, a Build
describes where to find source code, how to build
it (for example, the builder image to run on the source), and where to store
the built artifacts.
Fields can include the following variables, which will be expanded when the build is created:
- $PROJECT_ID: the project ID of the build.
- $PROJECT_NUMBER: the project number of the build.
- $LOCATION: the location/region of the build.
- $BUILD_ID: the autogenerated ID of the build.
- $REPO_NAME: the source repository name specified by RepoSource.
- $BRANCH_NAME: the branch name specified by RepoSource.
- $TAG_NAME: the tag name specified by RepoSource.
- $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag.
- $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
Defined Under Namespace
Modules: Status Classes: FailureInfo, SubstitutionsEntry, TimingEntry, Warning
Instance Attribute Summary collapse
-
#approval ⇒ ::Google::Cloud::Build::V1::BuildApproval
readonly
Output only.
-
#artifacts ⇒ ::Google::Cloud::Build::V1::Artifacts
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
-
#available_secrets ⇒ ::Google::Cloud::Build::V1::Secrets
Secrets and secret environment variables.
-
#build_trigger_id ⇒ ::String
readonly
Output only.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#failure_info ⇒ ::Google::Cloud::Build::V1::Build::FailureInfo
readonly
Output only.
-
#finish_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#id ⇒ ::String
readonly
Output only.
-
#images ⇒ ::Array<::String>
A list of images to be pushed upon the successful completion of all build steps.
-
#log_url ⇒ ::String
readonly
Output only.
-
#logs_bucket ⇒ ::String
Cloud Storage bucket where logs should be written (see Bucket Name Requirements).
-
#name ⇒ ::String
readonly
Output only.
-
#options ⇒ ::Google::Cloud::Build::V1::BuildOptions
Special options for this build.
-
#project_id ⇒ ::String
readonly
Output only.
-
#queue_ttl ⇒ ::Google::Protobuf::Duration
TTL in queue for this build.
-
#results ⇒ ::Google::Cloud::Build::V1::Results
readonly
Output only.
-
#secrets ⇒ ::Array<::Google::Cloud::Build::V1::Secret>
Secrets to decrypt using Cloud Key Management Service.
-
#service_account ⇒ ::String
IAM service account whose credentials will be used at build runtime.
-
#source ⇒ ::Google::Cloud::Build::V1::Source
The location of the source files to build.
-
#source_provenance ⇒ ::Google::Cloud::Build::V1::SourceProvenance
readonly
Output only.
-
#start_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#status ⇒ ::Google::Cloud::Build::V1::Build::Status
readonly
Output only.
-
#status_detail ⇒ ::String
readonly
Output only.
-
#steps ⇒ ::Array<::Google::Cloud::Build::V1::BuildStep>
Required.
-
#substitutions ⇒ ::Google::Protobuf::Map{::String => ::String}
Substitutions data for
Build
resource. -
#tags ⇒ ::Array<::String>
Tags for annotation of a
Build
. -
#timeout ⇒ ::Google::Protobuf::Duration
Amount of time that this build should be allowed to run, to second granularity.
-
#timing ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::TimeSpan}
readonly
Output only.
-
#warnings ⇒ ::Array<::Google::Cloud::Build::V1::Build::Warning>
readonly
Output only.
Instance Attribute Details
#approval ⇒ ::Google::Cloud::Build::V1::BuildApproval (readonly)
Returns Output only. Describes this build's approval configuration, status, and result.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#artifacts ⇒ ::Google::Cloud::Build::V1::Artifacts
Returns Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#available_secrets ⇒ ::Google::Cloud::Build::V1::Secrets
Returns Secrets and secret environment variables.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#build_trigger_id ⇒ ::String (readonly)
Returns Output only. The ID of the BuildTrigger
that triggered this build, if it
was triggered automatically.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time at which the request to create the build was received.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#failure_info ⇒ ::Google::Cloud::Build::V1::Build::FailureInfo (readonly)
Returns Output only. Contains information about the build when status=FAILURE.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#finish_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time at which execution of the build was finished.
The difference between finish_time and start_time is the duration of the build's execution.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#id ⇒ ::String (readonly)
Returns Output only. Unique identifier of the build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#images ⇒ ::Array<::String>
Returns A list of images to be pushed upon the successful completion of all build steps.
The images are pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build
resource's
results field.
If any of the images fail to be pushed, the build status is marked
FAILURE
.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#log_url ⇒ ::String (readonly)
Returns Output only. URL to logs for this build in Google Cloud Console.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#logs_bucket ⇒ ::String
Returns Cloud Storage bucket where logs should be written (see
Bucket Name
Requirements).
Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt
.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#name ⇒ ::String (readonly)
Returns Output only. The 'Build' name with format:
projects/{project}/locations/{location}/builds/{build}
, where {build}
is a unique identifier generated by the service.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#options ⇒ ::Google::Cloud::Build::V1::BuildOptions
Returns Special options for this build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#project_id ⇒ ::String (readonly)
Returns Output only. ID of the project.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#queue_ttl ⇒ ::Google::Protobuf::Duration
Returns TTL in queue for this build. If provided and the build is enqueued longer
than this value, the build will expire and the build status will be
EXPIRED
.
The TTL starts ticking from create_time.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#results ⇒ ::Google::Cloud::Build::V1::Results (readonly)
Returns Output only. Results of the build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#secrets ⇒ ::Array<::Google::Cloud::Build::V1::Secret>
Returns Secrets to decrypt using Cloud Key Management Service.
Note: Secret Manager is the recommended technique
for managing sensitive data with Cloud Build. Use available_secrets
to
configure builds to access secrets from Secret Manager. For instructions,
see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#service_account ⇒ ::String
Returns IAM service account whose credentials will be used at build runtime.
Must be of the format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
ACCOUNT can be email address or uniqueId of the service account.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#source ⇒ ::Google::Cloud::Build::V1::Source
Returns The location of the source files to build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#source_provenance ⇒ ::Google::Cloud::Build::V1::SourceProvenance (readonly)
Returns Output only. A permanent fixed identifier for source.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#start_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time at which execution of the build was started.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#status ⇒ ::Google::Cloud::Build::V1::Build::Status (readonly)
Returns Output only. Status of the build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#status_detail ⇒ ::String (readonly)
Returns Output only. Customer-readable message about the current status.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#steps ⇒ ::Array<::Google::Cloud::Build::V1::BuildStep>
Returns Required. The operations to be performed on the workspace.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#substitutions ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Substitutions data for Build
resource.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#tags ⇒ ::Array<::String>
Returns Tags for annotation of a Build
. These are not docker tags.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#timeout ⇒ ::Google::Protobuf::Duration
Returns Amount of time that this build should be allowed to run, to second
granularity. If this amount of time elapses, work on the build will cease
and the build status will be TIMEOUT
.
timeout
starts ticking from startTime
.
Default time is 60 minutes.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#timing ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::TimeSpan} (readonly)
Returns Output only. Stores timing information for phases of the build. Valid keys are:
- BUILD: time to execute all build steps.
- PUSH: time to push all artifacts including docker images and non docker artifacts.
- FETCHSOURCE: time to fetch source.
- SETUPBUILD: time to set up build.
If the build does not specify source or images, these keys will not be included.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |
#warnings ⇒ ::Array<::Google::Cloud::Build::V1::Build::Warning> (readonly)
Returns Output only. Non-fatal problems encountered during the execution of the build.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 632 class Build include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A non-fatal problem encountered during the execution of the build. # @!attribute [rw] text # @return [::String] # Explanation of the warning generated. # @!attribute [rw] priority # @return [::Google::Cloud::Build::V1::Build::Warning::Priority] # The priority for this warning. class Warning include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relative importance of this warning. module Priority # Should not be used. PRIORITY_UNSPECIFIED = 0 # e.g. deprecation warnings and alternative feature highlights. INFO = 1 # e.g. automated detection of possible issues with the build. WARNING = 2 # e.g. alerts that a feature used in the build is pending removal ALERT = 3 end end # A fatal problem encountered during the execution of the build. # @!attribute [rw] type # @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType] # The name of the failure. # @!attribute [rw] detail # @return [::String] # Explains the failure issue in more detail using hard-coded text. class FailureInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The name of a fatal problem encountered during the execution of the # build. module 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 end end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class SubstitutionsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Build::V1::TimeSpan] class TimingEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible status of a build or build step. module Status # Status of the build is unknown. STATUS_UNKNOWN = 0 # Build has been created and is pending execution and queuing. It has not # been queued. PENDING = 10 # Build or step is queued; work has not yet begun. QUEUED = 1 # Build or step is being executed. WORKING = 2 # Build or step finished successfully. SUCCESS = 3 # Build or step failed to complete successfully. FAILURE = 4 # Build or step failed due to an internal cause. INTERNAL_ERROR = 5 # Build or step took longer than was allowed. TIMEOUT = 6 # Build or step was canceled by a user. CANCELLED = 7 # Build was enqueued for longer than the value of `queue_ttl`. EXPIRED = 9 end end |