Google Cloud Build V1 Client - Class MavenArtifact (0.14.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class MavenArtifact.

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

Generated from protobuf message google.devtools.cloudbuild.v1.Artifacts.MavenArtifact

Namespace

Google \ Cloud \ Build \ V1 \ Artifacts

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repository 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.

↳ path 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.

↳ artifact_id string

Maven artifactId value used when uploading the artifact to Artifact Registry.

↳ group_id string

Maven groupId value used when uploading the artifact to Artifact Registry.

↳ version string

Maven version value used when uploading the artifact to Artifact Registry.

getRepository

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
TypeDescription
string

setRepository

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPath

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
TypeDescription
string

setPath

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArtifactId

Maven artifactId value used when uploading the artifact to Artifact Registry.

Returns
TypeDescription
string

setArtifactId

Maven artifactId value used when uploading the artifact to Artifact Registry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGroupId

Maven groupId value used when uploading the artifact to Artifact Registry.

Returns
TypeDescription
string

setGroupId

Maven groupId value used when uploading the artifact to Artifact Registry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Maven version value used when uploading the artifact to Artifact Registry.

Returns
TypeDescription
string

setVersion

Maven version value used when uploading the artifact to Artifact Registry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this