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

Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility

      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.

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

          Idan Adar added a comment -

          So in this context what does "per se" mean? If there isn't should we ditch the multi branch job type then?

          Idan Adar added a comment - So in this context what does "per se" mean? If there isn't should we ditch the multi branch job type then?

          Jesse Glick added a comment -

          Again there are other ways to suppress triggering of builds from branch projects.

          Jesse Glick added a comment - Again there are other ways to suppress triggering of builds from branch projects.

          Idan Adar added a comment -

          Could you please point to these options? I may have missed it.

          Idan Adar added a comment - Could you please point to these options? I may have missed it.

          Jesse Glick added a comment -

          A topic for the user list, stackoverflow.com, or #jenkins.

          Jesse Glick added a comment - A topic for the user list, stackoverflow.com, or #jenkins.

          Sorin Sbarnea added a comment -

          From another dimension:

          Here is your new car which looks great and even has an auto-pilot. BTW, we removed the break pedal because it was taking too much space and we moved it inside the trunk. Ask on the forum and people will tell you how they managed to use it.

          Sorin Sbarnea added a comment - From another dimension: Here is your new car which looks great and even has an auto-pilot. BTW, we removed the break pedal because it was taking too much space and we moved it inside the trunk. Ask on the forum and people will tell you how they managed to use it.

          Joe Harte added a comment -

          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 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?

          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.

          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?

          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?

          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.

          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.

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

              Created:
              Updated:
              Resolved: