createArtifactVersion

Back to index

Summary

Creates a new artifact version.
version
Stringrequired
The version component of the GAV (GroupId/ArtifactVersionId/Version) coordinates.
artifactKey
Stringoptional
The artifactKey component of the GAV (GroupId/ArtifactVersionId/Version) coordinates.
artifactName
Stringoptional
The name of the artifact containing the artifactVersion.
dependentArtifactVersions
Collectionoptional
The set of artifactVersions on which this artifactVersion depends.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
groupId
Stringoptional
The groupId component of the GAV (GroupId/ArtifactVersionId/Version) coordinates.
jobStepId
UUIDoptional
The ID of the job step; used to make a project association.
repositoryName
Stringoptional
The name of the artifact repository.

Usage

Perl

$cmdr->createArtifactVersion( "test-version" # version # optionals );

ectool

ectool createArtifactVersion \ "test-version" `# version` \ # optionals

Examples

Perl

$cmdr->createArtifactVersion(1.1, {artifactName => test:test1});
$cmdr->createArtifactVersion(1.2, {artifactName => test1:test2});

ectool

ectool createArtifactVersion 1.1 --artifactName test:test1
ectool createArtifactVersion 1.2 --artifactName test1:test2