diff options
| author | Rémy Coutable <remy@rymai.me> | 2016-09-29 08:46:48 +0000 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2016-09-29 08:46:48 +0000 |
| commit | dbfcccaf7754d4501dc253b4409fc9f026248e67 (patch) | |
| tree | ca2396139e1cb8329dec3ca23fa810cffcf30d9c /doc | |
| parent | 7a7799812e9b21c9957e25ec4b48e0648bda20fb (diff) | |
| parent | e80e4cb8b97a3865b7e3c551a856a53d98cccf75 (diff) | |
| download | gitlab-ce-dbfcccaf7754d4501dc253b4409fc9f026248e67.tar.gz | |
Merge branch '22367-add-pipeline-id-build' into 'master'
Expose pipeline data in builds API
Exposes pipeline data in builds API, as suggested by #22367.
The fields exposed were 'id', 'status', 'ref', and 'sha'.
Closes #22367
See merge request !6502
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/api/builds.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/api/builds.md b/doc/api/builds.md index dce666445d0..e8a9e4743d3 100644 --- a/doc/api/builds.md +++ b/doc/api/builds.md @@ -40,6 +40,12 @@ Example of response "finished_at": "2015-12-24T17:54:27.895Z", "id": 7, "name": "teaspoon", + "pipeline": { + "id": 6, + "ref": "master", + "sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd", + "status": "pending" + } "ref": "master", "runner": null, "stage": "test", @@ -78,6 +84,12 @@ Example of response "finished_at": "2015-12-24T17:54:24.921Z", "id": 6, "name": "spinach:other", + "pipeline": { + "id": 6, + "ref": "master", + "sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd", + "status": "pending" + } "ref": "master", "runner": null, "stage": "test", @@ -146,6 +158,12 @@ Example of response "finished_at": "2016-01-11T10:14:09.526Z", "id": 69, "name": "rubocop", + "pipeline": { + "id": 6, + "ref": "master", + "sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd", + "status": "pending" + } "ref": "master", "runner": null, "stage": "test", @@ -170,6 +188,12 @@ Example of response "finished_at": "2015-12-24T17:54:33.913Z", "id": 9, "name": "brakeman", + "pipeline": { + "id": 6, + "ref": "master", + "sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd", + "status": "pending" + } "ref": "master", "runner": null, "stage": "test", @@ -231,6 +255,12 @@ Example of response "finished_at": "2015-12-24T17:54:31.198Z", "id": 8, "name": "rubocop", + "pipeline": { + "id": 6, + "ref": "master", + "sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd", + "status": "pending" + } "ref": "master", "runner": null, "stage": "test", |
