Is there a way to get the revision number of the previous successful build? bamboo.planRepository.previousRevision gives me the revision for the previous bamboo build even if that build failed

This question is in reference to Atlassian Documentation: Bamboo variables

Ask your question here...

2 answers

This widget could not be displayed.

Being able to determine what the revision number of the previous successful bamboo build is key to being able to produce a report of what changed between the previous successful build that testers were using and the new build being produced

This widget could not be displayed.

If there is no bamboo variable that holds the revision number of the previous successful build, then is there a way (from bash script) to write to an environment variable that gets stored within bamboo where my build script could write the current revision number when the build script determines that the build was successful? This environment variable would need to be made available for a future bamboo build so that the build script could use the content of that environment variable as the "previous successful revision"

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

171 views 18 7
Join discussion

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