Hi all, In a declarative pipeline (a Jenkinsfile in the repo), how can I stop a job from getting re/triggered due to a push event in GitHub? For example:
stage ("Publish to npm") { steps { sh ''' npm publish npm --no-git-tag-version version minor ''' sh ''' git commit -am 'Bumped version number' git push ''' } } The "git push" will trigger the push webhook in GitHub that makes a call to Jenkins, which will in turn start the same Jenkinsfile and again bump the version, commit, push and again... a loop. How can we not-trigger the job in this scenario? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fcb1b9ad-c18b-487a-96ee-f7b13a447d02%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.