Passing information between stages

Hi all,

In bamboo, beside artifacts, we need to share information between stages e.g. package name. These information are generated by a specific stage and should be passed to another stage.

What is the best way to handle this situation? Is there a way to set the value for a plan variable from a job so it's possible to use it in a job from another stage?

2 answers

0 vote

You can share files between stages - using the 'shared artifacts' feature.

It should be easy to share any kind of information in this way.

Does this apply if jobs runs on different agents? To me this seems to be a named reference to a file on filesystem where job A runs. Job B doesn't nessesary run on same agent.

Yes, it works. Bamboo makes sure that the file is available no matter where/when the jobs were run.

All 'Shared Artifacts' are stored on the server, not on the agents. After your build runs, any artifacts set as 'shared' get sent back to the server and stored in the server's artifact folder.

What VCS system are you using? You could accomplish the same by applying a 'tag' or 'label' to a specific file and committing the change.

Or in Subversion, you can set svn:properties.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,782 views 0 6
Read article

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