summaryrefslogtreecommitdiff
path: root/doc/api/builds.md
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-12 11:50:14 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-12 11:50:14 +0100
commit470b3a482a06c733665abcf2d92ad4d898b2efe0 (patch)
tree9cd705d64b488f194b534234450bdeb8d072e70d /doc/api/builds.md
parent5ba0232f7905a0c2a55ff80cbb97ddf2404fa22c (diff)
downloadgitlab-ce-470b3a482a06c733665abcf2d92ad4d898b2efe0.tar.gz
Fix doc/api/builds.md
Diffstat (limited to 'doc/api/builds.md')
-rw-r--r--doc/api/builds.md60
1 files changed, 19 insertions, 41 deletions
diff --git a/doc/api/builds.md b/doc/api/builds.md
index 64efe6bb3b1..99ef0882c16 100644
--- a/doc/api/builds.md
+++ b/doc/api/builds.md
@@ -127,11 +127,9 @@ Parameters:
- `scope` (optional) - The scope of builds to show (one or array of: pending, running, failed, success, canceled; if none provided showing all builds)
```json
-
-```
-
-## Get a single build
-mmit": {
+[
+ {
+ "commit": {
"author_email": "admin@example.com",
"author_name": "Administrator",
"created_at": "2015-12-24T16:51:14.000+01:00",
@@ -141,41 +139,18 @@ mmit": {
"title": "Test the CI integration."
},
"coverage": null,
- "created_at": "2015-12-24T15:51:21.957Z",
+ "created_at": "2016-01-11T10:13:33.506Z",
"download_url": null,
- "finished_at": "2015-12-24T17:54:33.913Z",
- "id": 9,
- "name": "brakeman",
+ "finished_at": "2016-01-11T10:14:09.526Z",
+ "id": 69,
+ "name": "rubocop",
"ref": "master",
"runner": null,
"stage": "test",
- "started_at": "2015-12-24T17:54:33.727Z",
- "status": "failed",
+ "started_at": null,
+ "status": "canceled",
"tag": false,
- "user": {
- "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
- "bio": null,
- "can_create_group": true,
- "can_create_project": true,
- "color_scheme_id": 2,
- "created_at": "2015-12-21T13:14:24.077Z",
- "current_sign_in_at": "2016-01-11T09:31:40.472Z",
- "email": "admin@example.com",
- "id": 1,
- "identities": [],
- "is_admin": true,
- "linkedin": "",
- "name": "Administrator",
- "projects_limit": 100,
- "skype": "",
- "state": "active",
- "theme_id": 3,
- "twitter": "",
- "two_factor_enabled": false,
- "username": "root",
- "web_url": "http://gitlab.dev/u/root",
- "website_url": ""
- }
+ "user": null
},
{
"commit": {
@@ -188,15 +163,15 @@ mmit": {
"title": "Test the CI integration."
},
"coverage": null,
- "created_at": "2015-12-24T15:51:21.880Z",
+ "created_at": "2015-12-24T15:51:21.957Z",
"download_url": null,
- "finished_at": "2015-12-24T17:54:31.198Z",
- "id": 8,
- "name": "rubocop",
+ "finished_at": "2015-12-24T17:54:33.913Z",
+ "id": 9,
+ "name": "brakeman",
"ref": "master",
"runner": null,
"stage": "test",
- "started_at": "2015-12-24T17:54:30.733Z",
+ "started_at": "2015-12-24T17:54:33.727Z",
"status": "failed",
"tag": false,
"user": {
@@ -206,7 +181,7 @@ mmit": {
"can_create_project": true,
"color_scheme_id": 2,
"created_at": "2015-12-21T13:14:24.077Z",
- "current_sign_in_at": "2016-01-11T09:31:40.472Z",
+ "current_sign_in_at": "2016-01-12T10:30:48.315Z",
"email": "admin@example.com",
"id": 1,
"identities": [],
@@ -225,6 +200,9 @@ mmit": {
}
}
]
+```
+
+## Get a single build
Get a single build of a project