Category Archives: Jenkins

Jenkins REST API

Jenkins has a useful REST api that can be used to create jobs, build and disable them.

Quick reference:

GET request to build

http://[userid]:[apitoken]@[jenkinsURL]/job/[Jenkins Job Name]/build

POST Request to Disable

http://[userid]:[apitoken]@[jenkinsURL]/job/[Jenkins Job Name]/disable