public sealed class MavenArtifact : IMessage<Artifacts.Types.MavenArtifact>, IEquatable<Artifacts.Types.MavenArtifact>, IDeepCloneable<Artifacts.Types.MavenArtifact>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class Artifacts.Types.MavenArtifact.
A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
Implements
IMessage<Artifacts.Types.MavenArtifact>, IEquatable<Artifacts.Types.MavenArtifact>, IDeepCloneable<Artifacts.Types.MavenArtifact>, IBufferMessage, IMessageNamespace
Google.Cloud.CloudBuild.V1Assembly
Google.Cloud.CloudBuild.V1.dll
Constructors
MavenArtifact()
public MavenArtifact()
MavenArtifact(Artifacts.Types.MavenArtifact)
public MavenArtifact(Artifacts.Types.MavenArtifact other)
Parameter | |
---|---|
Name | Description |
other | Artifacts.Types.MavenArtifact |
Properties
ArtifactId
public string ArtifactId { get; set; }
Maven artifactId
value used when uploading the artifact to Artifact
Registry.
Property Value | |
---|---|
Type | Description |
String |
GroupId
public string GroupId { get; set; }
Maven groupId
value used when uploading the artifact to Artifact
Registry.
Property Value | |
---|---|
Type | Description |
String |
Path
public string Path { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
Repository
public string Repository { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
Version
public string Version { get; set; }
Maven version
value used when uploading the artifact to Artifact
Registry.
Property Value | |
---|---|
Type | Description |
String |