Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27299

Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            boon Joe Harte added a comment - https://issues.jenkins-ci.org/browse/JENKINS-49307

            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?

            mildred Mildred Ki'Lya added a 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?
            owenmehegan Owen Mehegan added a 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.

            owenmehegan Owen Mehegan added a 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.

            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?

            wolfgangk Wolfgang Kiendl added a 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?
            danielbeck Daniel Beck added a 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.

            danielbeck Daniel Beck added a 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.

            People

              jglick Jesse Glick
              apemberton Andy Pemberton
              Votes:
              178 Vote for this issue
              Watchers:
              167 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: