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.
More on Multibranch, organization folders & webhooks
How does a multibranch pipeline work?BeginnerWhat is branch indexing and what triggers it?BeginnerWhat are the discovery traits in the GitHub branch source?IntermediateWhat does the fork PR trust setting protect against?AdvancedWhat environment variables are set for PR builds?BeginnerWhat is an organization folder?Intermediate