Skip to content

[JENKINS-27299] Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility #20925

Closed

Description

@jenkins-infra-bot

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.


Originally reported by apemberton, imported from: Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility
  • assignee: jglick
  • status: Resolved
  • priority: Minor
  • component(s): core, workflow-job-plugin
  • label(s): pipeline
  • resolution: Fixed
  • resolved: 2017-05-16T12:52:44+00:00
  • votes: 178
  • watchers: 167
  • imported: 2025-11-24
Raw content of original issue

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.

  • environment: 1.580+

Activity

  1. jenkins-infra-bot commented on Mar 10, 2015

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Jul 29, 2015

    @jenkins-infra-bot
    Author
    scoheb:
    • Original comment link
    • 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

    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

  3. jenkins-infra-bot commented on Aug 3, 2015

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • 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.

    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.

  4. jenkins-infra-bot commented on Oct 16, 2015

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • 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.

    mswyatt This is the original issue you should track for disabling workflows; the CLI command is just piggybacking on AbstractBuild's methods.

  5. jenkins-infra-bot commented on Aug 23, 2016

    @jenkins-infra-bot
    Author
    bhupsa:
    • Original comment link
    • 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.

    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.

  6. jenkins-infra-bot commented on Sep 9, 2016

    @jenkins-infra-bot
    Author
    aje:
    • Original comment link
    • Raw content of original comment:

      This is a core feature in my mind. I'd love to see it fixed/added. Thanks!

    This is a core feature in my mind. I'd love to see it fixed/added. Thanks!

  7. jenkins-infra-bot commented on Sep 13, 2016

    @jenkins-infra-bot
    Author
    csiden:

    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.

  8. jenkins-infra-bot commented on Sep 29, 2016

    @jenkins-infra-bot
    Author
    afahd:
    • Original comment link
    • Raw content of original comment:

      Guys, any luck on this?

    Guys, any luck on this?

  9. jenkins-infra-bot commented on Sep 30, 2016

    @jenkins-infra-bot
    Author
    maxzilla:
    • Original comment link
    • 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.

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

  10. jenkins-infra-bot commented on Oct 6, 2016

    @jenkins-infra-bot
    Author
    mbick:
    • Original comment link
    • Raw content of original comment:

      +1 for this feature request please!

    +1 for this feature request please!

  11. jenkins-infra-bot commented on Oct 20, 2016

    @jenkins-infra-bot
    Author
    tjajab:
    • Original comment link
    • Raw content of original comment:

      +1. That this does not exist makes the gui inconsistent.

    +1. That this does not exist makes the gui inconsistent.

  12. jenkins-infra-bot commented on Oct 20, 2016

    @jenkins-infra-bot
    Author
    mhay:

    +1

  13. jenkins-infra-bot commented on Oct 21, 2016

    @jenkins-infra-bot
    Author
    dyerkess:
    • Original comment link
    • 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.

    +1 I am loving pipelines, but keep finding various small things that seem to be missing even when they seem important.

  14. jenkins-infra-bot commented on Oct 21, 2016

    @jenkins-infra-bot
    Author
    owenmehegan:
    • Original comment link
    • 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.

    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.

  15. jenkins-infra-bot commented on Oct 23, 2016

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • 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).

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

  16. 35 remaining items

  17. jenkins-infra-bot commented on May 4, 2018

    @jenkins-infra-bot
    Author
    mildred:
    • Original comment link
    • 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?

    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?

  18. jenkins-infra-bot commented on May 4, 2018

    @jenkins-infra-bot
    Author
    owenmehegan:
    • Original comment link
    • 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.

    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.

  19. jenkins-infra-bot commented on May 4, 2018

    @jenkins-infra-bot
    Author
    wolfgangk:
    • Original comment link
    • 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?

    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?

  20. jenkins-infra-bot commented on May 4, 2018

    @jenkins-infra-bot
    Author
    danielbeck:

    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.

  21. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-33821]

  22. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original blocks from Jira: JENKINS-36081]

  23. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions