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

How to download a specific version of an artifact using Yaml 2.0?

Hi there

We want to chain together several projects in bamboo.
This is already possible by downloading artifacts from a different repository as so:


- artifact-download:
source-plan: MYPROJECT
artifacts:
- destination: external_folder
- name: artifact1
- name: artifact2

however, this method always downloads the artifact from the latest build from that repository! To improve stability of our software we want to specify a specific version of an artifact in our yaml. So far we tried to use git tags to create artifacts in repository A which include the git commit-number in their name, but when we want to download that specific file with that specific version name from a different project this always fails!

how do we fix this?

1 answer

0 votes

Hi @Niek Nooijens

Welcome to our community!

Bamboo YAML specs do not provide a specific feature for that, but you could use the strategy provided in this article which involves a Curl request to Bamboo:

In your case that would be a script task with that curl call. The down-side of it is that you will need to use your credentials. You could set them in the password variables to remove them from the YAML file.

I hope that helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

622 views 1 6
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