API

  1. All job (at top level) latest status: JENKINS_URL/api/xml
  2. Build numbers and urls for a job: JENKINS_URL/job/jobName/api/xml
  3. Build result and details: JENKINS_URL/job/jobName/buildNumber/api/xml
  4. Create job: POST to JENKINS_URL/createItem?name=jobName and post config.xml
  5. Delete job: POST to JENKINS_URL/job/jobName/doDelete
  6. Enable job: POST to JENKINS_URL/job/jobName/enable
  7. Disable job: POST to JENKINS_URL/job/jobName/disable

Note: If your Jenkins uses the "Prevent Cross Site Request Forgery exploits" security option (which it should), when you make a POST request, you have to send a CSRF protection token (.crumb) as an HTTP request header.

For curl/wget you can obtain the header needed in the request from the

URL JENKINS_URL/crumbIssuer/api/xml (or .../api/json).

results matching ""

    No results matching ""