Artifact

1 minute readReference

createArtifact

Creates a new artifact.

Arguments

Argument Name Type Description

artifactKey

String

The artifactKey component of the GAV (GroupId/ArtifactKey/Version) coordinates.

artifactVersionNameTemplate

String

The artifactVersion name template.

description

String

Comment text describing this object that is not interpreted at all by CloudBees CD/RO.

groupId

String

The groupId component of the GAV (GroupId/ArtifactKey/Version) coordinates.

Usage

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

deleteArtifact

Deletes an artifact.

Arguments

Argument Name Type Description

artifactName

String

The name of the artifact. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.deleteArtifact( artifactName: 'test-artifactName')

getArtifact

Find an artifact by name.

Arguments

Argument Name Type Description

artifactName

String

The name of the artifact. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.getArtifact( artifactName: 'test-artifactName')

getArtifacts

Retrieve all artifacts in the system.

Arguments

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.getArtifacts()

modifyArtifact

Modifies an existing artifact.

Arguments

Argument Name Type Description

artifactName

String

The name of the artifact

artifactVersionNameTemplate

String

The artifactVersion name template.

description

String

Comment text describing this object that is not interpreted at all by CloudBees CD/RO.

Usage

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