Cloud Build v1 API - Class Artifacts.Types.MavenArtifact (2.1.0)

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.

Inheritance

Object > Artifacts.Types.MavenArtifact

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

MavenArtifact()

public MavenArtifact()

MavenArtifact(Artifacts.Types.MavenArtifact)

public MavenArtifact(Artifacts.Types.MavenArtifact other)
Parameter
NameDescription
otherArtifacts.Types.MavenArtifact

Properties

ArtifactId

public string ArtifactId { get; set; }

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

Property Value
TypeDescription
String

GroupId

public string GroupId { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
String

Version

public string Version { get; set; }

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

Property Value
TypeDescription
String