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

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Labels New: api rest
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166173 ] New: JNJira + In-Review [ 182289 ]
          Martin d'Anjou made changes -
          Labels Original: api rest New: api newbie-friendly rest

          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.
          Bharat H made changes -
          Assignee New: Bharat H [ bharat_h ]

          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.
          Wimukthi Indeewara made changes -
          Assignee Original: Bharat H [ bharat_h ] New: Wimukthi Indeewara [ wimukthi ]
          Wimukthi Indeewara made changes -
          Assignee Original: Wimukthi Indeewara [ wimukthi ]

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

              Created:
              Updated:
              Resolved: