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 \ ArtifactsMethods
__construct
Constructor.
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.
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.
var
string
$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.
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.
var
string
$this
getArtifactId
Maven artifactId
value used when uploading the artifact to Artifact
Registry.
string
setArtifactId
Maven artifactId
value used when uploading the artifact to Artifact
Registry.
var
string
$this
getGroupId
Maven groupId
value used when uploading the artifact to Artifact
Registry.
string
setGroupId
Maven groupId
value used when uploading the artifact to Artifact
Registry.
var
string
$this
getVersion
Maven version
value used when uploading the artifact to Artifact
Registry.
string
setVersion
Maven version
value used when uploading the artifact to Artifact
Registry.
var
string
$this