proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb in google-cloud-build-v1-0.12.0 vs proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb in google-cloud-build-v1-0.13.0
- old
+ new
@@ -182,10 +182,40 @@
class BuiltImage
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # Artifact uploaded using the PythonPackage directive.
+ # @!attribute [rw] uri
+ # @return [::String]
+ # URI of the uploaded artifact.
+ # @!attribute [rw] file_hashes
+ # @return [::Google::Cloud::Build::V1::FileHashes]
+ # Hash types and values of the Python Artifact.
+ # @!attribute [r] push_timing
+ # @return [::Google::Cloud::Build::V1::TimeSpan]
+ # Output only. Stores timing information for pushing the specified artifact.
+ class UploadedPythonPackage
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # A Maven artifact uploaded using the MavenArtifact directive.
+ # @!attribute [rw] uri
+ # @return [::String]
+ # URI of the uploaded artifact.
+ # @!attribute [rw] file_hashes
+ # @return [::Google::Cloud::Build::V1::FileHashes]
+ # Hash types and values of the Maven Artifact.
+ # @!attribute [r] push_timing
+ # @return [::Google::Cloud::Build::V1::TimeSpan]
+ # Output only. Stores timing information for pushing the specified artifact.
+ class UploadedMavenArtifact
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# A step in the build pipeline.
# @!attribute [rw] name
# @return [::String]
# Required. The name of the container image that will run this particular
# build step.
@@ -275,10 +305,25 @@
# @!attribute [r] status
# @return [::Google::Cloud::Build::V1::Build::Status]
# Output only. Status of the build step. At this time, build step status is
# only updated on build completion; step status is not updated in real-time
# as the build progresses.
+ # @!attribute [rw] allow_failure
+ # @return [::Boolean]
+ # Allow this build step to fail without failing the entire build.
+ #
+ # If false, the entire build will fail if this step fails. Otherwise, the
+ # build will succeed, but this step will still have a failure status.
+ # Error information will be reported in the failure_detail field.
+ # @!attribute [r] exit_code
+ # @return [::Integer]
+ # Output only. Return code from running the step.
+ # @!attribute [rw] allow_exit_codes
+ # @return [::Array<::Integer>]
+ # Allow this build step to fail without failing the entire build if and
+ # only if the exit code is one of the specified codes. If allow_failure
+ # is also specified, this field will take precedence.
# @!attribute [rw] script
# @return [::String]
# A shell script to be executed in the step.
#
# When script is provided, the user cannot specify the entrypoint or args.
@@ -329,10 +374,16 @@
# can produce this output by writing to `$BUILDER_OUTPUT/output`.
# Only the first 4KB of data is stored.
# @!attribute [rw] artifact_timing
# @return [::Google::Cloud::Build::V1::TimeSpan]
# Time to push all non-container artifacts.
+ # @!attribute [rw] python_packages
+ # @return [::Array<::Google::Cloud::Build::V1::UploadedPythonPackage>]
+ # Python artifacts uploaded to Artifact Registry at the end of the build.
+ # @!attribute [rw] maven_artifacts
+ # @return [::Array<::Google::Cloud::Build::V1::UploadedMavenArtifact>]
+ # Maven artifacts uploaded to Artifact Registry at the end of the build.
class Results
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end
@@ -647,10 +698,28 @@
#
# The location and generation of the uploaded objects will be stored in the
# Build resource's results field.
#
# If any objects fail to be pushed, the build is marked FAILURE.
+ # @!attribute [rw] maven_artifacts
+ # @return [::Array<::Google::Cloud::Build::V1::Artifacts::MavenArtifact>]
+ # A list of Maven artifacts to be uploaded to Artifact Registry upon
+ # successful completion of all build steps.
+ #
+ # Artifacts in the workspace matching specified paths globs will be uploaded
+ # to the specified Artifact Registry repository using the builder service
+ # account's credentials.
+ #
+ # If any artifacts fail to be pushed, the build is marked FAILURE.
+ # @!attribute [rw] python_packages
+ # @return [::Array<::Google::Cloud::Build::V1::Artifacts::PythonPackage>]
+ # A list of Python packages to be uploaded to Artifact Registry upon
+ # successful completion of all build steps.
+ #
+ # The build service account credentials will be used to perform the upload.
+ #
+ # If any objects fail to be pushed, the build is marked FAILURE.
class Artifacts
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
# Files in the workspace to upload to Cloud Storage upon successful
@@ -668,9 +737,63 @@
# Path globs used to match files in the build's workspace.
# @!attribute [r] timing
# @return [::Google::Cloud::Build::V1::TimeSpan]
# Output only. Stores timing information for pushing all artifact objects.
class ArtifactObjects
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # A Maven artifact to upload to Artifact Registry upon successful completion
+ # of all build steps.
+ # @!attribute [rw] repository
+ # @return [::String]
+ # Artifact Registry repository, in the form
+ # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
+ #
+ # Artifact in the workspace specified by path will be uploaded to
+ # Artifact Registry with this location as a prefix.
+ # @!attribute [rw] path
+ # @return [::String]
+ # Path to an artifact in the build's workspace to be uploaded to
+ # Artifact Registry.
+ # This can be either an absolute path,
+ # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
+ # or a relative path from /workspace,
+ # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
+ # @!attribute [rw] artifact_id
+ # @return [::String]
+ # Maven `artifactId` value used when uploading the artifact to Artifact
+ # Registry.
+ # @!attribute [rw] group_id
+ # @return [::String]
+ # Maven `groupId` value used when uploading the artifact to Artifact
+ # Registry.
+ # @!attribute [rw] version
+ # @return [::String]
+ # Maven `version` value used when uploading the artifact to Artifact
+ # Registry.
+ class MavenArtifact
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # Python package to upload to Artifact Registry upon successful completion
+ # of all build steps. A package can encapsulate multiple objects to be
+ # uploaded to a single repository.
+ # @!attribute [rw] repository
+ # @return [::String]
+ # Artifact Registry repository, in the form
+ # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
+ #
+ # Files in the workspace matching any path pattern will be uploaded to
+ # Artifact Registry with this location as a prefix.
+ # @!attribute [rw] paths
+ # @return [::Array<::String>]
+ # Path globs used to match files in the build's workspace. For Python/
+ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
+ # file.
+ class PythonPackage
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end
end