I use the Maven Release Plugin to automate the build and release process. It works fine, but one problem that I encountered.
I created a task that checks the trunk every 15 minutes if any changes find that it starts the build and release process. And his work is excellent.
But the small problem is when release:prepare is executed, it creates a tag and automatically increments the version of trunk / pom.xml (with SNAPSHOT) to the next version of the SNAPSHOT version.
Suppose my current build version is 2.0-SNAPSHOT. After successful creation, create a tag of only 2.0 (without SNAPSHOT). It also automatically increases pom.xml inside the trunk to 2.1-SNAPSHOT.
The problem is that when my Jenkins (crontab) checks the trunk every 15 minutes, it detects a new version inside the trunk (i.e. pom.xml). And he again creates a new assembly. This process is repeated again and again. Where I know that there are no code changes in the trunk, only the version is increased using the release:prepare command.
Below I give a Jenkins screen shot for reference.

Any help would be greatly appreciated.
Thanks in advance.
source share