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

get
/do/JobName

curl localhost:3000/do/Build?deploy=no
Execute a job.
Request
Response
Path Parameters
job
required
string
The class name of the job
Query Parameters
job parameters
optional
object
Any parameter required by the job
200: OK
Job received and sent to queue.
{
"status": "received",
"job": "Build",
"params": {
"deploy":"no"
}
}
404: Not Found
Job cannot be found.
{
"status": "error",
"message": "No such job",
"job": "BuildAndRun",
"params": {}
}

post
/do/JobName

curl -XPOST localhost:3000/do/Build -d deploy=yes
Execute a job.
Request
Response
Path Parameters
job
required
string
The class name of the job
Form Data Parameters
job parameters
optional
object
Any parameter required by the job
200: OK
Job received and sent to queue.
{
"status": "received",
"job": "Build",
"params": {
"deploy":"no"
}
}
404: Not Found
Job cannot be found.
{
"status": "error",
"message": "No such job",
"job": "BuildAndRun",
"params": {}
}