Back to index
Summary
This command returns the most current artifact version that matches the filter criteria and its dependent artifact versions. This API implicitly searches for artifact versions in theavailable
state, and if run in a job step, registers the step as a retriever for the returned artifact versions.
|
artifactKeyStringoptionalThe artifactKey component of the GAV (GroupId/ArtifactVersionId/Version) coordinates. artifactNameStringoptionalThe name of the artifact containing the artifactVersion. artifactVersionNameStringoptionalThe name of the artifactVersion to find. filterArrayoptionalA list of zero or more filter criteria definitions used to define objects to find. groupIdStringoptionalThe groupId component of the GAV (GroupId/ArtifactVersionId/Version) coordinates. Defaults to the name of the project that owns the requesting job-step, if there is one. Otherwise, this is a required argument. includeDependentsBooleanoptionalWhether to include dependent artifact versions in results. jobStepIdUUIDoptionalIf the retriever is a job-step, it gets registered as a consumer of the result artifactVersion. versionRangeStringoptionalOptional version range, specified in interval notation. |
Usage
Perl
$cmdr->findArtifactVersions( # optionals );
ectool
ectool findArtifactVersions \ # optionals
Examples
Perl
Example 1
# Find the most current core:infra artifact version whose version is 1.x.x. $cmdr->findArtifactVersions({groupId => "core", artifactKey => "infra", versionRange => "[1.0, 2.0)"}); # Or alternatively ... $cmdr->findArtifactVersions({artifactName => "core:infra", versionRange => "[1.0,2.0)"});