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
Community showcase
Posted 10 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

30 views 1 2
Join discussion

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