The maven release plugin assumes you are releasing from the latest commit on the current branch (HEAD). You cannot release from a previous build, it has to be the latest one.
Before running the build, it's possible to customise the versions:
It's possible to change the next released version in the Plan Configuration as well:
Configuring a plan to have a release step:
1) Change the SCM tag of your pom file to SSH
2) Create the two plan variables, maven.development.version (empty) and maven.release.version (with the next version that you have in your pom file)
3) Add the 'Distribution' repository to your release
4) Remove the polling trigger of the Distribution repository
5) Add a distribution.property variable to your build
6) Copy the release job from Allergy API, into a manual stage
Other pages