createArtifactVersion

On this page
Back to index

Summary

Creates a new artifact version.
artifactKey
Stringoptional
The artifactKey component of the GAV (GroupId/ArtifactVersionId/Version) coordinates.
artifactName
Stringoptional
The name of the artifact containing the artifactVersion.
dependentArtifactVersions
Array<Unknown>optional
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
Stringoptional
The ID of the job step; used to make a project association.
repositoryName
Stringoptional
The name of the artifact repository.
version
Stringoptional
The version component of the GAV (GroupId/ArtifactVersionId/Version) coordinates.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createArtifactVersion( /* optional arguments */ )