Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket API 2.0 download artifacts

Wojciech Wąsowicz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2020

Is there any way I can get artifacts from a pipeline's step using CLI?

I was trying to retrive a specific step with no success even though it is defined in doc:

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines/%7Bpipeline_uuid%7D/steps/%7Bstep_uuid%7D

curl -X GET -is -u "username:password" -H 'Content-Type: application/json' https://api.bitbucket.org/2.0/repositories/<workspace>/<repo_slug>/pipelines/<pipeline_uuid>/steps/<step_uuid>

returns

{ "error": { "data": { "arguments": {}, "key": "unexpected.response.body" }, "detail": "Unexpected response body", "message": "Bad request" }}

It is something about formatting I guess, when encoding curly brackets e.g ".../steps/7Bd83a8fdc-0cc2-1234-1234-d16fd1501009%7D" I get an error above, not encoded results with:

{ "error": { "data": { "arguments": {}, "key": "unexpected.response.body" }, "detail": "Unexpected response body", "message": "Bad request" }}

 

1 answer

0 votes
CHANAKYA BODDUPALLI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2020

Hi Wojciech,

Are you able to fix this issue?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events