简体   繁体   中英

How to disable a Jenkins Multibranch Pipeline project

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:

在此处输入图像描述

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.

https://issues.jenkins-ci.org/browse/JENKINS-27299?focusedCommentId=336904&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-336904

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

在此处输入图像描述

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".

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

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

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:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM