Interview Prep/Jenkins/Multibranch, organization folders & webhooks

How do you skip CI for a commit in a multibranch pipeline?

IntermediateConceptMultibranch, organization folders & webhooks
Answer

Jenkins has no built-in [skip ci]. Options: the SCM Skip plugin (scmSkip(deleteBuild: true, skipPattern: '.*\\[skip ci\\].*')), the GitHub Branch Source trait from the "SCM Filter Commit Message" plugin, or a manual check of git log -1 --pretty=%B that calls currentBuild.result = 'NOT_BUILT' and returns. Be careful: allowing skip on main can let unbuilt code reach deploy pipelines.

All Jenkins questions Roadmap: Jenkins

More on Multibranch, organization folders & webhooks