#[non_exhaustive]pub struct MavenArtifact {
pub repository: String,
pub path: String,
pub artifact_id: String,
pub group_id: String,
pub version: String,
}Expand description
A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repository: StringArtifact 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: StringPath 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: StringMaven artifactId value used when uploading the artifact to Artifact
Registry.
group_id: StringMaven groupId value used when uploading the artifact to Artifact
Registry.
version: StringMaven version value used when uploading the artifact to Artifact
Registry.
Implementations§
Source§impl MavenArtifact
impl MavenArtifact
Sourcepub fn set_repository<T: Into<String>>(self, v: T) -> Self
pub fn set_repository<T: Into<String>>(self, v: T) -> Self
Sets the value of repository.
Sourcepub fn set_artifact_id<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_id<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_id.
Sourcepub fn set_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_group_id<T: Into<String>>(self, v: T) -> Self
Sets the value of group_id.
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Trait Implementations§
Source§impl Clone for MavenArtifact
impl Clone for MavenArtifact
Source§fn clone(&self) -> MavenArtifact
fn clone(&self) -> MavenArtifact
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more