The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Bamboo
  • Questions
  • 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

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

Jon Ringle
August 12, 2016

This question is in reference to Atlassian Documentation: Bamboo variables

Ask your question here...

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jon Ringle
August 12, 2016

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"

0 votes
Jon Ringle
August 12, 2016

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

TAGS
AUG Leaders

Atlassian Community Events