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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,324 views 0 5
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