4
votes

I have to skip some jenkins build based on git commit message. So I have searched and found this jenkins plugin.But I could not configure enable ci-skip in multi branch pipeline job. This option is not available in multi branch pipeline setup.

Is there a way to configure this [ci skip] in multi branch jenkins pipeline?

Is it usable in jenkinsfile or Is it possible to prevent jenkins build based on commit message in jenkinsfile?

2

2 Answers

4
votes

You are not the only one experiencing problems with [ci skip]:

It looks like the plugin is yet broken.

0
votes

When you configure your branch sources to poll your Git repository in your multibranch pipeline, you can in theory add an additional behaviour to ignore commits with certain messages, such as [skip], as shown in the example below :

Polling ignore commits

I say "in theory" because I never could make that work, either on a multibranch pipeline job or on a simple pipeline job (with pipeline script from SCM).