addDependentsToArtifactVersion

Back to index

Summary

Adds an artifact version query to an existing artifact. Dependent artifact versions are retrieved when the parent artifact version is retrieved.
artifactVersionName
Stringrequired
The name of the artifactVersion.
dependentArtifactVersion
Arrayoptional
List of dependent artifactVersions to add/remove from the artifactVersion.

Usage

Perl

$cmdr->addDependentsToArtifactVersion( "test-artifactVersionName" # artifactVersionName # optionals );

ectool

ectool addDependentsToArtifactVersion \ "test-artifactVersionName" `# artifactVersionName` \ # optionals

Examples

Perl

# Add a dependency on cmdr:SDK:1.2.0 and the most current version of core:infra that # is greater than or equal to 2.1.0.
$cmdr->addDependentsToArtifactVersion(artifactVersionName => "myGroup:myAKey:1.0.0-55",{dependentArtifactVersions => ["cmdr:SDK:1.2.0", "core:infra:[2.1.0,]"]});

ectool

ectool addDependentsToArtifactVersion "myGroup:myAKey:1.0.0-55" --dependentArtifactVersions "cmdr:SDK:1.2.0" "core:infra:[2.1.0,]"