It's all about the answers!

Ask a question

REST API for downloading from a build result?


Martha (Ruby) Andrews (3.0k44251) | asked Oct 23 '14, 6:03 p.m.
JAZZ DEVELOPER
Hello,
Is there a REST API that I can use to download artifacts from a build result? 
I want to automate a process that includes downloading 2 files that show up in a build result. One of the files is published as a link and one of them is published as a file in the Jazz repository. 

Thanks,
Ruby 

Martha (Ruby) Andrews
Jazz Foundation L3 Development Team Lead

One answer



permanent link
Nick Edgar (6.5k711) | answered Oct 23 '14, 10:50 p.m.
JAZZ DEVELOPER
Hi Ruby. If this is being driven from the build / client side, it's probably simplest to use the artifactFileRetriever Ant task, at least for the case where the content is in the repo. For the linked case, you can list the contributions via the REST interface (internal for web UI, not API), e.g. here are the contributions for the 5.0.2 M2 buildexternal linksdownloads (aka artifacts)  and logs. These include both linked and content contributions. The linked ones have a URL property (under extendedContributionProperties), the content ones have a content blob (a Content helper set as the contribution's extendedContributionData).


Comments
Nick Edgar commented Oct 23 '14, 10:58 p.m.
JAZZ DEVELOPER

Another possibility isĀ scripting via the Java client API. If nothing else, this approach avoids the authentication dance you need to do when using the REST interfaces.

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.