gitlab-org--gitlab-foss/doc/ci/api/builds.md

42 lines
679 B
Markdown
Raw Normal View History

2015-08-25 21:42:46 -04:00
# Builds API
This API used by runners to receive and update builds.
__Authentication is done by runner token__
## Builds
### Runs oldest pending build by runner
2015-09-15 18:28:59 -04:00
POST /ci/builds/register
2015-08-25 21:42:46 -04:00
Parameters:
* `token` (required) - The unique token of runner
Returns:
```json
{
"id" : 79,
"commands" : "",
"path" : "",
"ref" : "",
"sha" : "",
"project_id" : 6,
"repo_url" : "git@demo.gitlab.com:gitlab/gitlab-shell.git",
"before_sha" : ""
}
```
### Update details of an existing build
2015-09-15 18:28:59 -04:00
PUT /ci/builds/:id
2015-08-25 21:42:46 -04:00
Parameters:
* `id` (required) - The ID of a project
* `state` (optional) - The state of a build
* `trace` (optional) - The trace of a build