Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Bitbucket API 2.0 download artifacts Edited

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" }}

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,060 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you