I have a multibranch job set to run any branch with a Jenkinsfile.
I have some options I can think of if I want to remove a branch from the list of jobs running for the multi-branch pipeline.
- I can delete the branch
- I can delete the Jenkinsfile in that branch
The second solution is good, except I need to commit and push that to the git repo for my branch, and if that branch is merged into another branch it blows away the Jenkinsfile.
What is the best way to disable only some branches of a multibranch pipeline?