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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ group_id |
string
Maven |
↳ version |
string
Maven |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getArtifactId
Maven artifactId
value used when uploading the artifact to Artifact
Registry.
Returns | |
---|---|
Type | Description |
string |
setArtifactId
Maven artifactId
value used when uploading the artifact to Artifact
Registry.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getGroupId
Maven groupId
value used when uploading the artifact to Artifact
Registry.
Returns | |
---|---|
Type | Description |
string |
setGroupId
Maven groupId
value used when uploading the artifact to Artifact
Registry.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVersion
Maven version
value used when uploading the artifact to Artifact
Registry.
Returns | |
---|---|
Type | Description |
string |
setVersion
Maven version
value used when uploading the artifact to Artifact
Registry.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |