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

public sealed class Artifacts.Types.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(MavenArtifact)

public MavenArtifact(Artifacts.Types.MavenArtifact other)
Parameter
Name Description
other ArtifactsTypesMavenArtifact

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