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

Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility

    XMLWordPrintable

    Details

    • Similar Issues:

      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

            Show
            boon Joe Harte added a comment - https://issues.jenkins-ci.org/browse/JENKINS-49307
            Hide
            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?

            Show
            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?
            Hide
            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.

            Show
            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.
            Hide
            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?

            Show
            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?
            Hide
            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.

            Show
            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

              • Assignee:
                jglick Jesse Glick
                Reporter:
                apemberton Andy Pemberton
              • Votes:
                178 Vote for this issue
                Watchers:
                166 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: