Ignore pom.xml fixed when jenkins polls SCM

In my build setup, I have release builds and continuous builds (in which scm is polled). I use the maven-release plugin in pom.xml and use the release target: prepare release: execute in Release builds. This target checks the code from SVN, deploys and increments the artifact.version number in pom.xml, and retransmits it to SVN. Therefore, since pom.xml was bound to SVN, and Continuous build is an SCM poll, it starts and runs Continuous build. How can I make it NOT run the Continuous assembly when the release target updates pom.xml and commits it?

+4
source share
1 answer

As illustrated by the question β€œ Run jenkins if only the SCM comment template matches ”, you can configure continuous build to run if the commit comment does not match a specific value (for example, β€œrelease”).

In your case, this will allow you to avoid additional builds during the release by letting you follow the comment convention when changing pom.xml before release.

+1
source

Source: https://habr.com/ru/post/1384885/


All Articles