You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-27299] Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility #20925
Currently the Disable Build function is available as part of AbstractProject. This should be refactored out to a place where WorkflowJob can also inherit the functionality.
Currently the Disable Build function is available as part of AbstractProject. This should be refactored out to a place where WorkflowJob can also inherit the functionality.
I suspect ParameterizedJobMixIn is the right home for this, though I have not analyzed it in detail; would just need to try doing the refactoring and see what kind of trouble ensues.
I had no immediate plans to work on it.
I suspect ParameterizedJobMixIn is the right home for this, though I have not analyzed it in detail; would just need to try doing the refactoring and see what kind of trouble ensues.
It would be nice if we can enable/disable the workflow job.
I configured it to run in cycle and handle many other jobs with various criteria and keep running. Only I can stop it and re-run it but cant disable it so that when required it got enabled and then started again with any jenkins admin.
It would be nice if we can enable/disable the workflow job.
I configured it to run in cycle and handle many other jobs with various criteria and keep running. Only I can stop it and re-run it but cant disable it so that when required it got enabled and then started again with any jenkins admin.
Folks, it's not helpful to keep posting +1 comments. This generates a fairly pointless email to everyone who is watching this issue. If you want the feature, just add a vote. Thanks.
Folks, it's not helpful to keep posting +1 comments. This generates a fairly pointless email to everyone who is watching this issue. If you want the feature, just add a vote. Thanks.
There is a pull request pending to the Jenkins core.
If somebody is interested to get it sooner, please feel free to contribute by reviewing and testing the changes (or proposing your own PRs).
There is a pull request pending to the Jenkins core.
If somebody is interested to get it sooner, please feel free to contribute by reviewing and testing the changes (or proposing your own PRs).
This seems solved, however running recent versions of jenkins i cannot see how to disable builds. neither on specific branches or on repositories with multiple branches. Is there any documentation anywhere?
This seems solved, however running recent versions of jenkins i cannot see how to disable builds. neither on specific branches or on repositories with multiple branches. Is there any documentation anywhere?
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.
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.
For a normal pipeline job I now have the button and can disable it, however it does not appear in views that filter on disabled jobs (List View section, Job Statuses Filter). Is this another bug that should be reported separately because it probably belongs to another component? If so, could you give me a hint which component this might belong to?
For a normal pipeline job I now have the button and can disable it, however it does not appear in views that filter on disabled jobs (List View section, Job Statuses Filter). Is this another bug that should be reported separately because it probably belongs to another component? If so, could you give me a hint which component this might belong to?
Activity
jenkins-infra-bot commentedon Mar 10, 2015
Remote links associated with this issue:
jenkins-infra-bot commentedon Jul 29, 2015
Raw content of original comment:
jglick Are you planning on working on this in the near future? If not, would I be able to take a stab at this?
Thanks
Scott
jenkins-infra-bot commentedon Aug 3, 2015
Raw content of original comment:
I had no immediate plans to work on it.
I suspect ParameterizedJobMixIn is the right home for this, though I have not analyzed it in detail; would just need to try doing the refactoring and see what kind of trouble ensues.
jenkins-infra-bot commentedon Oct 16, 2015
Raw content of original comment:
mswyatt This is the original issue you should track for disabling workflows; the CLI command is just piggybacking on AbstractBuild's methods.
jenkins-infra-bot commentedon Aug 23, 2016
bhupsa:
Raw content of original comment:
It would be nice if we can enable/disable the workflow job.
I configured it to run in cycle and handle many other jobs with various criteria and keep running. Only I can stop it and re-run it but cant disable it so that when required it got enabled and then started again with any jenkins admin.
jenkins-infra-bot commentedon Sep 9, 2016
Raw content of original comment:
This is a core feature in my mind. I'd love to see it fixed/added. Thanks!
jenkins-infra-bot commentedon Sep 13, 2016
csiden:
Raw content of original comment:
I took a shot at adding disable support to pipeline jobs in two pull requests:
#2543
jenkinsci/workflow-job-plugin#22
I haven't done Jenkins development before though, so I'm not sure this is the right way to go about it.
jenkins-infra-bot commentedon Sep 29, 2016
Raw content of original comment:
Guys, any luck on this?
jenkins-infra-bot commentedon Sep 30, 2016
maxzilla:
Raw content of original comment:
+1 for this feature!
There are so many scenarios that require a job to be disabled that I also think that this is a core feature.
jenkins-infra-bot commentedon Oct 6, 2016
mbick:
Raw content of original comment:
+1 for this feature request please!
jenkins-infra-bot commentedon Oct 20, 2016
Raw content of original comment:
+1. That this does not exist makes the gui inconsistent.
jenkins-infra-bot commentedon Oct 20, 2016
mhay:
Raw content of original comment:
+1
jenkins-infra-bot commentedon Oct 21, 2016
Raw content of original comment:
+1 I am loving pipelines, but keep finding various small things that seem to be missing even when they seem important.
jenkins-infra-bot commentedon Oct 21, 2016
Raw content of original comment:
Folks, it's not helpful to keep posting +1 comments. This generates a fairly pointless email to everyone who is watching this issue. If you want the feature, just add a vote. Thanks.
jenkins-infra-bot commentedon Oct 23, 2016
Raw content of original comment:
There is a pull request pending to the Jenkins core.
If somebody is interested to get it sooner, please feel free to contribute by reviewing and testing the changes (or proposing your own PRs).
35 remaining items
jenkins-infra-bot commentedon May 4, 2018
mildred:
Raw content of original comment:
This seems solved, however running recent versions of jenkins i cannot see how to disable builds. neither on specific branches or on repositories with multiple branches. Is there any documentation anywhere?
jenkins-infra-bot commentedon May 4, 2018
Raw content of original comment:
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.
jenkins-infra-bot commentedon May 4, 2018
wolfgangk:
Raw content of original comment:
For a normal pipeline job I now have the button and can disable it, however it does not appear in views that filter on disabled jobs (List View section, Job Statuses Filter). Is this another bug that should be reported separately because it probably belongs to another component? If so, could you give me a hint which component this might belong to?
jenkins-infra-bot commentedon May 4, 2018
Raw content of original comment:
Might be https://plugins.jenkins.io/view-job-filters if you're using that, but core's List view also has a boolean flag to only include enabled jobs. Either, or both.
jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-33821]jenkins-infra-bot commentedon Nov 24, 2025
[Original
blocksfrom Jira: JENKINS-36081]