Problem: we have a jenkins job that can 1) build the project (e.g. mvn package), and 2) the same job has Maven release build function enabled.
If I release, and I've not run a build immediately before I "perform maven release" I seem to risk applying the previous version to the tag.
E.g. I just released 0.0.2, and my head is at 0.0.3-SNAPSHOT. Again, I click perform maven release, and I'm offered the same versions again, not 0.0.3 / 0.0.4-SNAPSHOT.
Doing it by hand, I would always git pull, before mvn release:prepare release:perform.
So, in my view, jenkins too should git pull the repo first, before offering to set a version. Can this be done? It appears the jenkins release plugin ignores git settings in jenkins.