Can I download Bamboo built artifacts using Bamboo Rest - API?

Koray Tugay

This page states:

Bamboo's REST APIs provide the following capabilities:

  • Retrieve the artifacts for a build.

and here I see the documentation:

http://myhost.com:8085/bamboo/rest/api/latest/plan/{projectKey}-{buildKey}/artifact [GET]

When I try this link with the bamboo server I have, like:

https://my.bamboo.server/rest/api/latest/plan/MY-PLAN/artifact

All I get is:

<artifacts expand="artifacts">
    <link href="http://my.bamboo.server/rest/api/latest/plan/MY-PLAN/artifact" rel="self"/>
    <artifacts start-index="0" max-result="0" size="0"/>
</artifacts>

So am I understanding the REST documentation completely wrong, or is there something wrong possibly with MY-PLAN and this link is supposed to provide me a war file as I expect?

RCross

I'm afraid you are misunderstanding the REST documentation; by "Retrieve the artifacts for a build", it means "retrieves information about the build artifacts defined for a given plan". As you have already seen, all you get back is an XML or JSON document describing the artifacts defined.

If you want to download an actual build artifact, you'll need to write a script that uses /rest/api/latest/result/ to get the latest successful build info and, from that, form an actual download link to the artifact.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I download Maven artifacts within a plugin?

Download file using REST API

Bamboo build stuck on "Waiting to be built..." and Cloning into 'Common'

Using Perforce workspaces effectively with Bamboo

Show HTML artifacts in bamboo without downloading

How do I retrieve my custom variables from a Bamboo Atlassian Build Plan via REST API

POST a Multi-Part Form to Bamboo API

why can't I download artifacts from JFrog repository?

Email templates using bamboo without phoenix

How can I run .NET Core unit tests in Bamboo?

I am not able to connect github using bamboo

Can I change Wacom Bamboo touch settings?

Is there a REST endpoint to kick off a Bamboo build?

How can I download artifacts from teamcity 8.1.2 using C# code

Why can't heroku install nokogiri 1.6.5, on bamboo stack, using ruby 1.9.2?

optional artifacts download task in bamboo?

Is there a way to delete a Bamboo agent using Atlassian Bamboo SDK or Bamboo REST API services?

How do you get all Bamboo plans for a specific project using the Bamboo REST API

Xbuild can't recognize SignAndroidPackage when using bamboo

How to get the statistics of tests in a plan through Bamboo API

Nexus: How can I download latest minor version of artifact using nexus rest api

Download artifacts using REST from Team City

How can I zip a Bamboo build log to store as an artifact for users to download?

How to get current branch name in Bamboo using Java Api

How to invoke a Rest API from BAMBOO

python: can't open file - Bamboo

Can't download using Nexus 3 REST API and CURL

How can I download all artifacts for appended builds in Artifactory?

How can I test my express rest api built with MikroORM?