Very very simple.

http POST https://jenkins.example.com/jenkins//job/example/disable
http POST https://jenkins.example.com/jenkins//job/example/enable

You'll need to authenticate obviously.

Here's a more complete example:

curl -X POST https://jenkins.example.com/jenkins//job/example/disable \
  --user USER:PASSWORD

On Sat, Apr 25, 2015 at 9:47 PM, Nitish Kumar <nitishkuma...@gmail.com> wrote:
> Hi,
>
> I want to disable a Jenkins job in remote machine. I know that we can
> disable via jenkins-cli.jar.
> Can we disable a Jenkins job via GET or POST ?
>
> If yes, then what is the syntax of the URL?
>
>
>
> Thanks
> Nitish
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/767f8cb5-3d9b-4b93-9f75-2f760a6c7dbf%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BvtdQb7uJ-H47yQQ-3XJzmw2cKyeH6%3DuKmsurccpSgtAwa7OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to