Hello,
The Git plugin has a MessageExclusion extension to skip commits matching certain message patterns eg ‘[ci-skip]’. I have seen this reimplemented in a few different places in the Jenkins pipeline stack, and it would make sense to implement it only once.
The feature should probably live:
- At a higher abstraction level (so that all SCM providers and consumers can use it)
- As close to the checkout as possible (to allow the skip test to be performed without waiting until after the checkout directive - which is what the ci-skip-plugin does)
Would it therefore make sense to move MessageExclusion from the git-plugin to the scm-api-plugin, together with its related trait?
Regards,
Chris