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

Provide REST API for enabling and disabling Jenkins jobs

      It's a follow-up to JENKINS-30802.

      Workaround: use CLI

          [JENKINS-31011] Provide REST API for enabling and disabling Jenkins jobs

          Sladyn Nunes added a comment -

          oleg_nenashev I wanted to get more involved with the core and maybe could take a shot at this issue, any tips to get started on this.

          Sladyn Nunes added a comment - oleg_nenashev I wanted to get more involved with the core and maybe could take a shot at this issue, any tips to get started on this.

          Sladyn Nunes added a comment -

          oleg_nenashev Gentle Ping.

          Sladyn Nunes added a comment - oleg_nenashev Gentle Ping.

          Mark Waite added a comment - - edited

          As far as I can tell, there is already a REST API that can be used to enable and disable Jenkins jobs.

          When I open the "REST API" link at the bottom of a Jenkins freestyle job page, it includes:

          Disable/Enable a job

          To programmatically disable a job, post to this URL. Similarly post to this URL for enabling this job.

          Mark Waite added a comment - - edited As far as I can tell, there is already a REST API that can be used to enable and disable Jenkins jobs. When I open the "REST API" link at the bottom of a Jenkins freestyle job page, it includes: Disable/Enable a job To programmatically disable a job, post to this URL . Similarly post to this URL for enabling this job.

          Basil Crow added a comment -

          As explained in the previous comment, this is not a defect as this functionality already exists.

          Basil Crow added a comment - As explained in the previous comment, this is not a defect as this functionality already exists.

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: