Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can i get artifact download file with buildresultUUID?

Is there any way to get artifact download file from former build result in a repository with buildresultUUID by using build properties or scm ?

0 votes



2 answers

Permanent link
This is not currently supported in 2.x, at least not directly.
You might want to subscribe yourself on the existing enhancement request: 109918: Ant task to download an artifact or log for a build.

For now, what I recommend is publishing the artifacts you want to preserve on some other server, then use curl or a remote file copy to retrieve them later.
The link can be published to the build result downloads page, as if it was a file, using the artifactLinkPublisher Ant task.

It's also possible to list and retrieve contents via the (internal) REST interface used to drive the web UI. For example:
{yourJazzRepo}/resource/virtual/build/result/{buildResultUUID}/contributions?type=com.ibm.team.build.common.model.IBuildResultContribution.artifact&_prettyPrint=true

Where the {buildResultUUID} can be obtained from the last segment of Copy URL on the build result in the RTC client. For logs, change .artifact to .log.

But this interface is internal, and may change in the future. We are working on a more well-defined REST API, an implementation of the OSLC Automation API, in 3.0. See 73070: RESTful API for Build, to support C/ALM integration scenarios and its child items.

Regards,
Nick

0 votes


Permanent link
Thank you for your comments.
I subscribed myself to the request.

And out projects created ant task extention for downloading an artifact with build result URL.

Thank you :D

Regards,
yoma

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 02 '10, 3:07 a.m.

Question was seen: 5,179 times

Last updated: Jun 02 '10, 3:07 a.m.

Confirmation Cancel Confirm