Running Jobs with the API

The API supports running jobs either by GET or by POST in the following URL structure:

http://localhost:3000/do/JobName

Example

$ curl localhost:3000/do/Build

Or, if your job requires parameters, provide them through the query string:

$ curl localhost:3000/do/Build?deploy=no

Response

On success (200 OK)

{
  "status": "received",
  "job": "Build",
  "params": {
    "deploy":"no"
  }
}

On failure (404 Not Found)

{
  "status": "error",
  "message": "No such job",
  "job": "BuildAndRun",
  "params": {}
}