Skip to content

Commit

Permalink
Improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jul 2, 2013
1 parent 04379aa commit 1d43bae
Showing 1 changed file with 60 additions and 18 deletions.
78 changes: 60 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ Response:

POST /buildrequests

Arguments:
#### Arguments:

- `architecture`:
The architecture of the build request.
- `release_name`:
- `release`:
The release name to which the build belongs.
- `repository`:
The name of the repository to use as a source.
Expand All @@ -234,30 +234,72 @@ Arguments:
- `debug`:
Debug mode. Optional will default to false.

Input:

{
"architecture": "slc5_amd64_gcc472",
"release_name": "CMSSW_6_2_X_2013-04-08-0200",
"repository": "cms",
"PKGTOOLS": "ktf:my-branch",
"CMSDIST": "ktf:another-branch",
"ignoreErrors": true,
"package": "cmssw-ib",
"continuations": "cmssw-qa:slc5_amd64_gcc472",
"syncBack": false,
"debug": false
}
#### Example:

Response:
POST /buildrequests
{
"CMSDIST": "IB/CMSSW_6_2_X/stable",
"PKGTOOLS": "V00-21-XX",
"architecture": "slc5_amd64_gcc472",
"continuations": "",
"debug": false,
"hostnameFilter": ".*",
"ignoreErrors": true,
"package": "uuid",
"release": "CMSSW_6_2_X_2013-07-01-1400",
"release_queue": "CMSSW_6_2_X",
"repository": "cms.week0",
"syncBack": true,
"tmpRepository": "eulisse"
}

#### Response:

Status: 200
To be written
{
"author": "eulisse",
"url": "",
"lastModified": "2013-07-01T16:54:56",
"pid": "",
"id": "5",
"machine": "",
"state": "Pending",
"architecture": "slc5_amd64_gcc472",
"hostnameFilter": ".*",
"release": "CMSSW_6_2_X_2013-07-01-1400",
"payload": {
"repository": "cms.week0",
"package": "uuid",
"PKGTOOLS": "V00-21-XX",
"ignoreErrors": true,
"CMSDIST": "IB/CMSSW_6_2_X/stable",
"continuations": "",
"syncBack": true,
"architecture": "slc5_amd64_gcc472",
"debug": false,
"release": "CMSSW_6_2_X_2013-07-01-1400",
"tmpRepository": "eulisse"}
}

#### Errors:

In case a malformed request is done, it returns:

Status: 400 Bad Request

### Update the status of the build request.

PATCH /buildrequests/<id>

#### Example

PATCH /buildrequest/0
{
"state": "Pending",
"url": "http://build-logs.com/0",
"pid": 100
}

## Legacy tag collector API


Expand Down

0 comments on commit 1d43bae

Please sign in to comment.