We are currently reading this article and already using Bitbucket Build Number feature. However after reading it again makes us a bit confuse.
1. If branch develop BUILD NUMBER value is 30 and we merged it to master and triggers a build in pipeline, then will it become 31?
- $BITBUCKET_BUILD_NUMBER values will be unique across all branches, meaning you can use it as a software build number that won’t clash with builds on other branches
2. If we rerun a pipeline build in master that is now having 31 as its BUILD NUMBER value, will it become 32?
- rerunning a build will give it a new build number, also avoiding clashes and helping you track reruns better in the list of completed builds
3. Many said that BUILD NUMBER is equal to the current number of build in pipeline unless you did not do something.
Does rerunning a build pipeline will cause it to not get in synch with what is showing in pipeline tab? If yes, then how to see the current BUILD NUMBER value using cURL or RESTful API?
