Plan variable updating in build is not reflected in next build

Issue #16 new
David van Luijk created an issue

This is a repost of https://community.atlassian.com/t5/Bamboo-questions/Plan-variable-updating-in-build-is-not-reflected-in-next-build/qaq-p/2140911 since there where no answers to that topic there.

We are updating a buildnumber using the Variable Updater plugin with the "maven-release-plugin 2.5 algorithm", which I would expect to generate a new number every time. Normally, we see this tracing passing by:

Set PLAN level variable PlanBuildCounter to new value 1439
Substituting variable: ${bamboo.PlanBuildCounter} with 1438

Apparently the newly incremented value is used only for the next build. I read somewhere that the value of plan variables is frozen during the build, but that is not an issue since each build still has its unique number. 

However, sometimes we see this tracing passing by:

Not touching variable PlanBuildCounter of type PLAN, as it's already 1432
Substituting variable: ${bamboo.PlanBuildCounter} with 1431

This seems to happen when the next build is queued directly after the current build, it almost seems as if the variable is frozen from the moment of queuing and not from the moment the build has started executing. Since we only use one build agent, there are no concurrent builds.

Has anyone experienced this behavior as well and know of a solution?

Comments (0)

  1. Log in to comment