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

          Andy Pemberton created issue -
          Daniel Beck made changes -
          Component/s New: workflow-plugin [ 18820 ]
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Component/s Original: workflow-plugin [ 18820 ]

          Scott Hebert added a 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

          Scott Hebert added a 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

          Jesse Glick added a 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.

          Jesse Glick added a 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.

          Daniel Beck added a comment -

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

          Daniel Beck added a comment - mswyatt This is the original issue you should track for disabling workflows; the CLI command is just piggybacking on AbstractBuild's methods.
          James Nord made changes -
          Link New: This issue is blocking JENKINS-31345 [ JENKINS-31345 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-33821 [ JENKINS-33821 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161504 ] New: JNJira + In-Review [ 180723 ]

          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.

          bhupendra rathore added a 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.

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

              Created:
              Updated:
              Resolved: