Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,035
Community Members
 
Community Events
185
Community Groups

Dowload Plan Artifacts

An API to download the Artifacts of a plan . 

1 answer

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 20, 2018

Hello @Vishal Gala,

Firs of all you need to know what job result from which you want to extract the artifact.

Let's say it is 

PROJ-PLAN-JOB-<BUILD_NUM>

Then you can list all the artifacts from it using:

curl -u <USERNAME>:<PASSWORD> -X GET \
<BAMBOO_URL>/rest/api/latest/result/PROJ-PLAN-JOB-<BUILD_NUM>?expand=artifacts

The results should include the artifacts section listing all artifacts and the links to access them:

<artifacts>
...
<artifact>
<name>fortune</name>
<link href="<BAMBOO_URL>/browse/PROJ-PLAN-28/artifact/shared/<ARTIFACT_NAME>/<ARTIFACT_FILE>" rel="self"/>
<producerJobKey>PROJ-PLAN-JOB-<BUILD_NUM></producerJobKey>
<shared>true</shared>
<size>105</size>
<prettySizeDescription>105 bytes</prettySizeDescription>
</artifact>
...
</artifacts> 

 Once you decide what artifact to download you can use the following command:

curl -u <USERNAME>:<PASSWORD> -X GET \
<BAMBOO_URL>/browse/PROJ-PLAN-<BUILD_NUM>/artifact/shared/<ARTIFACT_NAME>/<ARTIFACT_FILE> \
> <ARTIFACT_FILE>

Please notice that we are redirecting the output of curl to a file otherwise it would just trow the artifact content on the terminal.

⚠️In case you need a solution for Windows you might need to install curl and adjust the commands to match the Windows terminal needs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events