It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo REST API : How do I get artifacts under directory with the REST API?

Hi Team,

We have setup Bamboo, and published artifacts under directory.

For e.g. http://ec2-34-202-14-12.compute-1.amazonaws.com:8085/browse/TOD-TODIR-6/artifact/JOB1/artifacts/target

See the attached image for reference. 

However, with the following REST API call 

"rest/api/latest/result/TOD-TODIR-6?expand=stages.stage.results.result.artifacts.artifact"

The response contains only one level as follows 

{
"name": "artifacts",
"link": {
"href": "http://ec2-34-202-14-12.compute-1.amazonaws.com:8085/browse/TOD-TODIR-6/artifact/JOB1/artifacts/target",
"rel": "self"
},
"producerJobKey": "TOD-TODIR-JOB1-6",
"shared": false,
"size": 14214081,
"prettySizeDescription": "13 MB"
}

Queries:

1. How to retrieve the artifacts that are placed under directory?

2 Is there any REST API to recursively fetch the artifacts?

Any help is highly appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

129 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you