Cloud Build V1 API - Class Google::Cloud::Build::V1::Artifacts::MavenArtifact (v0.22.0)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::Artifacts::MavenArtifact.

A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#artifact_id

def artifact_id() -> ::String
Returns
  • (::String) — Maven artifactId value used when uploading the artifact to Artifact Registry.

#artifact_id=

def artifact_id=(value) -> ::String
Parameter
  • value (::String) — Maven artifactId value used when uploading the artifact to Artifact Registry.
Returns
  • (::String) — Maven artifactId value used when uploading the artifact to Artifact Registry.

#group_id

def group_id() -> ::String
Returns
  • (::String) — Maven groupId value used when uploading the artifact to Artifact Registry.

#group_id=

def group_id=(value) -> ::String
Parameter
  • value (::String) — Maven groupId value used when uploading the artifact to Artifact Registry.
Returns
  • (::String) — Maven groupId value used when uploading the artifact to Artifact Registry.

#path

def path() -> ::String
Returns
  • (::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.

#path=

def path=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#repository

def repository() -> ::String
Returns
  • (::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.

#repository=

def repository=(value) -> ::String
Parameter
  • value (::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.

Returns
  • (::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.

#version

def version() -> ::String
Returns
  • (::String) — Maven version value used when uploading the artifact to Artifact Registry.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — Maven version value used when uploading the artifact to Artifact Registry.
Returns
  • (::String) — Maven version value used when uploading the artifact to Artifact Registry.