It's all about the answers!

Ask a question

Can i get artifact download file with buildresultUUID?


mariko yoshikawa (833) | asked Jun 02 '10, 3:07 a.m.
Is there any way to get artifact download file from former build result in a repository with buildresultUUID by using build properties or scm ?

2 answers



permanent link
Nick Edgar (6.5k711) | answered Jun 05 '10, 10:30 a.m.
JAZZ DEVELOPER
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

permanent link
mariko yoshikawa (833) | answered Aug 17 '10, 6:31 a.m.
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

Your answer


Register or 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.