#
Running Jobs using 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
200 OK
{
"status": "received",
"job": "Build",
"params": {
"deploy":"no"
}
}
404 Not Found
{
"status": "error",
"message": "No such job",
"job": "BuildAndRun",
"params": {}
}