I have a global variable that I use to label and version builds in a plan.
Each build needs to have its own unique build number across all branches.
The plan uses the "Version Variable Incrementer" to increment this global variable at the beginning of each build. It has "Include global variables" checked, and is using the "Bamboo Deployment algorithm" increment pattern.
This is mostly working, except that every now and then the global variable will jump back to an earlier number, and I cannot work out why.
When I look in the audit log, I can see the global variable being created over and over again (rather than updated), e.g.:
Timestamp | User | Changed field | Old value | New value |
19:34, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 984 | |
19:30, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 983 | |
19:30, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 1006 | |
19:24, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 1005 | |
18:54, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 1004 | |
18:53, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 1003 | |
18:50, 3 Jul | SYSTEM | Variable [uBindBuildNumber] has been created. | 1002 |
I can't see any other uses of this variable, but we have a lot of plans so I may have missed something.
How can I work out what is going on?
(We are using Bamboo version 5.13.1 build 51315)