REST API for downloading from a build result?
![]()
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
![]()
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 build: external links, downloads (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 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
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.