magnayn / Hudson-GIT-plugin

Git plugin for Hudson
http://wiki.hudson-ci.org/display/HUDSON/Git+Plugin
51 stars 26 forks source link

Create an option to skip triggering a build by commit message #10

Open daniilyar opened 10 years ago

daniilyar commented 10 years ago

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)

KTannenberg commented 10 years ago

This would be a nice addition to plugin +1

baratali commented 10 years ago

+1

GolubevV commented 9 years ago

+1

kristian-meyer commented 9 years ago

:+1:

My use case is tagging AssemblyInfo version with the build number.