Hudson-GIT-plugin
Hudson-GIT-plugin copied to clipboard
Create an option to skip triggering a build by commit message
Currently there is only one option to skip triggering builds by pattern in commit message. 'ci-skip' plugin (https://github.com/banyan/jenkins-ci-skip-plugin), which could skip builds with 'NON_BUILT' resolution if they contain '[ci skip]' in every commit message related to current build. But the best place to do this is the code of Jenkins GIT plugin as you can just not trigger a build for this case while ci-ckip plugin triggers build (!) and finishes it quickly as 'NON_BUILT' (and so, Jenkins Git plugin could just skip build instead of making redundant gray builds appear in list)
SVN plugin already supports this: http://stackoverflow.com/questions/8037230/run-jenkins-job-if-only-scm-comment-match-pattern
Example of new option usage: skip triggering a build if all it's commits contain '[maven-release-plugin]' as prefix (which is default for maven-release-plugin)
This would be a nice addition to plugin +1
+1
+1
:+1:
My use case is tagging AssemblyInfo version with the build number.