KBEC-00315 - How could I retrive published artifact at a step?

Summary

Sometimes, I would like to get an specific Artifact version within my step command.

How could I do this?

Solution

Using getArtifactVersion will gives you the result.
ArgumentsDescriptions| artifactVersionName | The name of the artifact version to retrieve.
*Note: *An artifact version name is interpreted by the server as the artifactVersionName attribute for the artifactVersion in question. This name is parsed and interpreted as "groupId:artifactKey:version"  and the object is searched either way you specify its name. The ElectricFlow server interprets either name form correctly.
Argument type: String |

includeRetrieverJobs

<Boolean flag - 0|1|true|false>  If set to 1, this argument includes jobId and jobName in returned information. A retriever job is any job that has retrieved the artifact version.
Argument type: Boolean

includeRetrieverJobSteps

<Boolean flag - 0|1|true|false>  If set to 1, this argument includes jobId, jobName, and jobStepIdinformation. A retriever job is any job that has retrieved the artifact version. Because there is no bound to how many job steps may retrieve a given artifact version, the server limits the response to the most recent 200 job steps.
Argument type: Boolean

maxRetrievers

If one of the includeRetriever* options are specified, return at most "this many" of the most recent retrievers. Without this option, the Flow server will return all retrievers.
Argument type: String

Examples

ec-perl">ec-perl

syntax: $cmdr->getArtifactVersion(<artifactVersionName>,

Unknown macro: {<optionals>}

);

Example$cmdr->getArtifactVersion("myGroup:myKey:1.0.0-55",
Unknown macro: {includeRetrieverJobs => "true"}
);">Example$cmdr->getArtifactVersion("myGroup:myKey:1.0.0-55",
Unknown macro: {includeRetrieverJobs => "true"}
);
ectool">ectool

syntax: ectool getArtifactVersion <artifactVersionName> ...

ExampleectoolgetArtifactVersionmyGroup:myKey:1.0.0-55-–includeRetrieverJobs"true"">Exampleectool getArtifactVersion myGroup:myKey:1.0.0-55 -–includeRetrieverJobs "true"

See Also

getArtifactVersion

Applies to

  • Product versions: 4.x
  • OS versions: All
Have more questions? Submit a request

Comments

Powered by Zendesk