Reputation: 2443
I've been creating a few Multibranch Pipeline projects in Jenkins and now
I've "upgraded" to use a GitHub Organization project.
How do I disable the old Multibranch Pipeline projects? I don't see any Disable button anywhere.
Here is a screenshot of what I mean:
Since I can't add a screenshot to a reply, I'm editing my question to include the screenshot to show I have the latest version of the Pipeline Plugin installed, 2.16:
Upvotes: 47
Views: 39799
Reputation: 69
The Multibranch plugin I installed is 2.21. No "Disable" option is available (at least I didn't see it). I did the following to disable the multibranch pipeline: Open the pipeline -> Configure -> uncheck Periodically if not otherwise run under Scan Multibranch Pipeline Triggers
Upvotes: 1
Reputation: 7644
If you are using a recent version of the Pipeline Job plugin (I am using version 2.25 from Sep 5, 2018) and you do not see the disable option, then you can still disable the job by appending /disable
to the URL of the job.
Source:
You would need to be logged in as a user who has access to write/configure builds. And if the build is Pipeline Multibranch you still won't see the disable button. If that's the case, you can append
/disable
to the project URL to disable it.
Upvotes: 63
Reputation: 16565
Append /disable
to the end of Job URL. Then Jenkins will redirect you to a page where you can Post
. Same applies for /enable
too
Upvotes: 28
Reputation: 595
Go into the configuration page for the multi branch pipeline. Under the Branch Sources, in the Properties section, add a property, and select "Suppress automatic SCM triggering".
Upvotes: 13
Reputation: 1169
You are not seeing the disable option may be because you are using an older version of pipeline job plugin. The feature to disable job was added in version 2.11 released in May 2017. Refer change log of pipeline job plugin and try updating your plugin to latest.
For multi branch pipeline specific branches can be disabled in Project > Configure > Branch Sources > Exception
Upvotes: -1