Hi All,

We are using Jenkins to implement our build pipeline on a Maven project.

We have configure our pipeline roughly as follows:

Push change to Github
Github post commit hook triggers Jenkins job
Jenkins job runs test etc ….
Jenkins copies artifact to Nexus repo
Jenkins increments version number in Maven
Jenkins pushes pom.xml with new version back to Github
We are using the Github plugin and all of these steps are working 
perfectly. Our issue is that once Jenkins commits back to Github the post 
commit trigger is firing and the whole process is starting again (and 
looping endlessly).

Can anyone advise me on how we might structure our pipeline to prevent this 
loop from occurring. 

All the best

Si

Reply via email to