Hudson-GIT-plugin icon indicating copy to clipboard operation
Hudson-GIT-plugin copied to clipboard

Create an option to skip triggering a build by commit message

Open daniilyar opened this issue 10 years ago • 4 comments

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)

daniilyar avatar Mar 06 '14 17:03 daniilyar

This would be a nice addition to plugin +1

KTannenberg avatar Mar 06 '14 17:03 KTannenberg

+1

baratali avatar Mar 06 '14 17:03 baratali

+1

GolubevV avatar Apr 03 '15 16:04 GolubevV

:+1:

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

kristian-meyer avatar Oct 13 '15 23:10 kristian-meyer