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

Srinivasa Rao Gurubelli September 16, 2017

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
TAGS
AUG Leaders

Atlassian Community Events