@templmf/temp-solf-lmf 0.0.109 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package//347/224/237/344/272/247/347/216/257/345/242/203CK/346/211/251/345/256/271/346/255/245/351/252/244052701.docx +0 -0
- package/gitlab-foss-8-17-stable/doc/api/README.md +0 -391
- package/gitlab-foss-8-17-stable/doc/api/access_requests.md +0 -139
- package/gitlab-foss-8-17-stable/doc/api/award_emoji.md +0 -374
- package/gitlab-foss-8-17-stable/doc/api/boards.md +0 -241
- package/gitlab-foss-8-17-stable/doc/api/branches.md +0 -260
- package/gitlab-foss-8-17-stable/doc/api/broadcast_messages.md +0 -154
- package/gitlab-foss-8-17-stable/doc/api/build_triggers.md +0 -118
- package/gitlab-foss-8-17-stable/doc/api/build_variables.md +0 -128
- package/gitlab-foss-8-17-stable/doc/api/builds.md +0 -610
- package/gitlab-foss-8-17-stable/doc/api/ci/README.md +0 -24
- package/gitlab-foss-8-17-stable/doc/api/ci/builds.md +0 -147
- package/gitlab-foss-8-17-stable/doc/api/ci/lint.md +0 -49
- package/gitlab-foss-8-17-stable/doc/api/ci/runners.md +0 -59
- package/gitlab-foss-8-17-stable/doc/api/commits.md +0 -479
- package/gitlab-foss-8-17-stable/doc/api/deploy_key_multiple_projects.md +0 -29
- package/gitlab-foss-8-17-stable/doc/api/deploy_keys.md +0 -216
- package/gitlab-foss-8-17-stable/doc/api/deployments.md +0 -218
- package/gitlab-foss-8-17-stable/doc/api/enviroments.md +0 -121
- package/gitlab-foss-8-17-stable/doc/api/groups.md +0 -484
- package/gitlab-foss-8-17-stable/doc/api/issues.md +0 -856
- package/gitlab-foss-8-17-stable/doc/api/keys.md +0 -46
- package/gitlab-foss-8-17-stable/doc/api/labels.md +0 -257
- package/gitlab-foss-8-17-stable/doc/api/members.md +0 -175
- package/gitlab-foss-8-17-stable/doc/api/merge_requests.md +0 -1158
- package/gitlab-foss-8-17-stable/doc/api/milestones.md +0 -105
- package/gitlab-foss-8-17-stable/doc/api/namespaces.md +0 -70
- package/gitlab-foss-8-17-stable/doc/api/notes.md +0 -407
- package/gitlab-foss-8-17-stable/doc/api/notification_settings.md +0 -177
- package/gitlab-foss-8-17-stable/doc/api/oauth2.md +0 -137
- package/gitlab-foss-8-17-stable/doc/api/pipelines.md +0 -259
- package/gitlab-foss-8-17-stable/doc/api/project_snippets.md +0 -118
- package/gitlab-foss-8-17-stable/doc/api/projects.md +0 -1402
- package/gitlab-foss-8-17-stable/doc/api/repositories.md +0 -200
- package/gitlab-foss-8-17-stable/doc/api/repository_files.md +0 -134
- package/gitlab-foss-8-17-stable/doc/api/runners.md +0 -322
- package/gitlab-foss-8-17-stable/doc/api/services.md +0 -812
- package/gitlab-foss-8-17-stable/doc/api/session.md +0 -56
- package/gitlab-foss-8-17-stable/doc/api/settings.md +0 -126
- package/gitlab-foss-8-17-stable/doc/api/sidekiq_metrics.md +0 -152
- package/gitlab-foss-8-17-stable/doc/api/snippets.md +0 -232
- package/gitlab-foss-8-17-stable/doc/api/system_hooks.md +0 -146
- package/gitlab-foss-8-17-stable/doc/api/tags.md +0 -191
- package/gitlab-foss-8-17-stable/doc/api/templates/gitignores.md +0 -579
- package/gitlab-foss-8-17-stable/doc/api/templates/gitlab_ci_ymls.md +0 -120
- package/gitlab-foss-8-17-stable/doc/api/templates/licenses.md +0 -147
- package/gitlab-foss-8-17-stable/doc/api/todos.md +0 -296
- package/gitlab-foss-8-17-stable/doc/api/users.md +0 -835
- package/gitlab-foss-8-17-stable/doc/api/v3_to_v4.md +0 -14
- package/gitlab-foss-8-17-stable/doc/api/version.md +0 -23
|
@@ -1,610 +0,0 @@
|
|
|
1
|
-
# Builds API
|
|
2
|
-
|
|
3
|
-
## List project builds
|
|
4
|
-
|
|
5
|
-
Get a list of builds in a project.
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
GET /projects/:id/builds
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
| Attribute | Type | Required | Description |
|
|
12
|
-
|-----------|---------|----------|---------------------|
|
|
13
|
-
| `id` | integer | yes | The ID of a project |
|
|
14
|
-
| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`; showing all builds if none provided |
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" 'https://gitlab.example.com/api/v3/projects/1/builds?scope%5B0%5D=pending&scope%5B1%5D=running'
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Example of response
|
|
21
|
-
|
|
22
|
-
```json
|
|
23
|
-
[
|
|
24
|
-
{
|
|
25
|
-
"commit": {
|
|
26
|
-
"author_email": "admin@example.com",
|
|
27
|
-
"author_name": "Administrator",
|
|
28
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
29
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
30
|
-
"message": "Test the CI integration.",
|
|
31
|
-
"short_id": "0ff3ae19",
|
|
32
|
-
"title": "Test the CI integration."
|
|
33
|
-
},
|
|
34
|
-
"coverage": null,
|
|
35
|
-
"created_at": "2015-12-24T15:51:21.802Z",
|
|
36
|
-
"artifacts_file": {
|
|
37
|
-
"filename": "artifacts.zip",
|
|
38
|
-
"size": 1000
|
|
39
|
-
},
|
|
40
|
-
"finished_at": "2015-12-24T17:54:27.895Z",
|
|
41
|
-
"id": 7,
|
|
42
|
-
"name": "teaspoon",
|
|
43
|
-
"pipeline": {
|
|
44
|
-
"id": 6,
|
|
45
|
-
"ref": "master",
|
|
46
|
-
"sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
47
|
-
"status": "pending"
|
|
48
|
-
},
|
|
49
|
-
"ref": "master",
|
|
50
|
-
"runner": null,
|
|
51
|
-
"stage": "test",
|
|
52
|
-
"started_at": "2015-12-24T17:54:27.722Z",
|
|
53
|
-
"status": "failed",
|
|
54
|
-
"tag": false,
|
|
55
|
-
"user": {
|
|
56
|
-
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
|
|
57
|
-
"bio": null,
|
|
58
|
-
"created_at": "2015-12-21T13:14:24.077Z",
|
|
59
|
-
"id": 1,
|
|
60
|
-
"is_admin": true,
|
|
61
|
-
"linkedin": "",
|
|
62
|
-
"name": "Administrator",
|
|
63
|
-
"skype": "",
|
|
64
|
-
"state": "active",
|
|
65
|
-
"twitter": "",
|
|
66
|
-
"username": "root",
|
|
67
|
-
"web_url": "http://gitlab.dev/root",
|
|
68
|
-
"website_url": ""
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"commit": {
|
|
73
|
-
"author_email": "admin@example.com",
|
|
74
|
-
"author_name": "Administrator",
|
|
75
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
76
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
77
|
-
"message": "Test the CI integration.",
|
|
78
|
-
"short_id": "0ff3ae19",
|
|
79
|
-
"title": "Test the CI integration."
|
|
80
|
-
},
|
|
81
|
-
"coverage": null,
|
|
82
|
-
"created_at": "2015-12-24T15:51:21.727Z",
|
|
83
|
-
"artifacts_file": null,
|
|
84
|
-
"finished_at": "2015-12-24T17:54:24.921Z",
|
|
85
|
-
"id": 6,
|
|
86
|
-
"name": "spinach:other",
|
|
87
|
-
"pipeline": {
|
|
88
|
-
"id": 6,
|
|
89
|
-
"ref": "master",
|
|
90
|
-
"sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
91
|
-
"status": "pending"
|
|
92
|
-
},
|
|
93
|
-
"ref": "master",
|
|
94
|
-
"runner": null,
|
|
95
|
-
"stage": "test",
|
|
96
|
-
"started_at": "2015-12-24T17:54:24.729Z",
|
|
97
|
-
"status": "failed",
|
|
98
|
-
"tag": false,
|
|
99
|
-
"user": {
|
|
100
|
-
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
|
|
101
|
-
"bio": null,
|
|
102
|
-
"created_at": "2015-12-21T13:14:24.077Z",
|
|
103
|
-
"id": 1,
|
|
104
|
-
"is_admin": true,
|
|
105
|
-
"linkedin": "",
|
|
106
|
-
"name": "Administrator",
|
|
107
|
-
"skype": "",
|
|
108
|
-
"state": "active",
|
|
109
|
-
"twitter": "",
|
|
110
|
-
"username": "root",
|
|
111
|
-
"web_url": "http://gitlab.dev/root",
|
|
112
|
-
"website_url": ""
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
## List commit builds
|
|
119
|
-
|
|
120
|
-
Get a list of builds for specific commit in a project.
|
|
121
|
-
|
|
122
|
-
This endpoint will return all builds, from all pipelines for a given commit.
|
|
123
|
-
If the commit SHA is not found, it will respond with 404, otherwise it will
|
|
124
|
-
return an array of builds (an empty array if there are no builds for this
|
|
125
|
-
particular commit).
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
GET /projects/:id/repository/commits/:sha/builds
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
| Attribute | Type | Required | Description |
|
|
132
|
-
|-----------|---------|----------|---------------------|
|
|
133
|
-
| `id` | integer | yes | The ID of a project |
|
|
134
|
-
| `sha` | string | yes | The SHA id of a commit |
|
|
135
|
-
| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`; showing all builds if none provided |
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" 'https://gitlab.example.com/api/v3/projects/1/repository/commits/0ff3ae198f8601a285adcf5c0fff204ee6fba5fd/builds?scope%5B0%5D=pending&scope%5B1%5D=running'
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Example of response
|
|
142
|
-
|
|
143
|
-
```json
|
|
144
|
-
[
|
|
145
|
-
{
|
|
146
|
-
"commit": {
|
|
147
|
-
"author_email": "admin@example.com",
|
|
148
|
-
"author_name": "Administrator",
|
|
149
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
150
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
151
|
-
"message": "Test the CI integration.",
|
|
152
|
-
"short_id": "0ff3ae19",
|
|
153
|
-
"title": "Test the CI integration."
|
|
154
|
-
},
|
|
155
|
-
"coverage": null,
|
|
156
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
157
|
-
"artifacts_file": null,
|
|
158
|
-
"finished_at": "2016-01-11T10:14:09.526Z",
|
|
159
|
-
"id": 69,
|
|
160
|
-
"name": "rubocop",
|
|
161
|
-
"pipeline": {
|
|
162
|
-
"id": 6,
|
|
163
|
-
"ref": "master",
|
|
164
|
-
"sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
165
|
-
"status": "pending"
|
|
166
|
-
},
|
|
167
|
-
"ref": "master",
|
|
168
|
-
"runner": null,
|
|
169
|
-
"stage": "test",
|
|
170
|
-
"started_at": null,
|
|
171
|
-
"status": "canceled",
|
|
172
|
-
"tag": false,
|
|
173
|
-
"user": null
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"commit": {
|
|
177
|
-
"author_email": "admin@example.com",
|
|
178
|
-
"author_name": "Administrator",
|
|
179
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
180
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
181
|
-
"message": "Test the CI integration.",
|
|
182
|
-
"short_id": "0ff3ae19",
|
|
183
|
-
"title": "Test the CI integration."
|
|
184
|
-
},
|
|
185
|
-
"coverage": null,
|
|
186
|
-
"created_at": "2015-12-24T15:51:21.957Z",
|
|
187
|
-
"artifacts_file": null,
|
|
188
|
-
"finished_at": "2015-12-24T17:54:33.913Z",
|
|
189
|
-
"id": 9,
|
|
190
|
-
"name": "brakeman",
|
|
191
|
-
"pipeline": {
|
|
192
|
-
"id": 6,
|
|
193
|
-
"ref": "master",
|
|
194
|
-
"sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
195
|
-
"status": "pending"
|
|
196
|
-
},
|
|
197
|
-
"ref": "master",
|
|
198
|
-
"runner": null,
|
|
199
|
-
"stage": "test",
|
|
200
|
-
"started_at": "2015-12-24T17:54:33.727Z",
|
|
201
|
-
"status": "failed",
|
|
202
|
-
"tag": false,
|
|
203
|
-
"user": {
|
|
204
|
-
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
|
|
205
|
-
"bio": null,
|
|
206
|
-
"created_at": "2015-12-21T13:14:24.077Z",
|
|
207
|
-
"id": 1,
|
|
208
|
-
"is_admin": true,
|
|
209
|
-
"linkedin": "",
|
|
210
|
-
"name": "Administrator",
|
|
211
|
-
"skype": "",
|
|
212
|
-
"state": "active",
|
|
213
|
-
"twitter": "",
|
|
214
|
-
"username": "root",
|
|
215
|
-
"web_url": "http://gitlab.dev/root",
|
|
216
|
-
"website_url": ""
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## Get a single build
|
|
223
|
-
|
|
224
|
-
Get a single build of a project
|
|
225
|
-
|
|
226
|
-
```
|
|
227
|
-
GET /projects/:id/builds/:build_id
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
| Attribute | Type | Required | Description |
|
|
231
|
-
|------------|---------|----------|---------------------|
|
|
232
|
-
| `id` | integer | yes | The ID of a project |
|
|
233
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8"
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Example of response
|
|
240
|
-
|
|
241
|
-
```json
|
|
242
|
-
{
|
|
243
|
-
"commit": {
|
|
244
|
-
"author_email": "admin@example.com",
|
|
245
|
-
"author_name": "Administrator",
|
|
246
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
247
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
248
|
-
"message": "Test the CI integration.",
|
|
249
|
-
"short_id": "0ff3ae19",
|
|
250
|
-
"title": "Test the CI integration."
|
|
251
|
-
},
|
|
252
|
-
"coverage": null,
|
|
253
|
-
"created_at": "2015-12-24T15:51:21.880Z",
|
|
254
|
-
"artifacts_file": null,
|
|
255
|
-
"finished_at": "2015-12-24T17:54:31.198Z",
|
|
256
|
-
"id": 8,
|
|
257
|
-
"name": "rubocop",
|
|
258
|
-
"pipeline": {
|
|
259
|
-
"id": 6,
|
|
260
|
-
"ref": "master",
|
|
261
|
-
"sha": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
262
|
-
"status": "pending"
|
|
263
|
-
},
|
|
264
|
-
"ref": "master",
|
|
265
|
-
"runner": null,
|
|
266
|
-
"stage": "test",
|
|
267
|
-
"started_at": "2015-12-24T17:54:30.733Z",
|
|
268
|
-
"status": "failed",
|
|
269
|
-
"tag": false,
|
|
270
|
-
"user": {
|
|
271
|
-
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
|
|
272
|
-
"bio": null,
|
|
273
|
-
"created_at": "2015-12-21T13:14:24.077Z",
|
|
274
|
-
"id": 1,
|
|
275
|
-
"is_admin": true,
|
|
276
|
-
"linkedin": "",
|
|
277
|
-
"name": "Administrator",
|
|
278
|
-
"skype": "",
|
|
279
|
-
"state": "active",
|
|
280
|
-
"twitter": "",
|
|
281
|
-
"username": "root",
|
|
282
|
-
"web_url": "http://gitlab.dev/root",
|
|
283
|
-
"website_url": ""
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
## Get build artifacts
|
|
289
|
-
|
|
290
|
-
> [Introduced][ce-2893] in GitLab 8.5
|
|
291
|
-
|
|
292
|
-
Get build artifacts of a project
|
|
293
|
-
|
|
294
|
-
```
|
|
295
|
-
GET /projects/:id/builds/:build_id/artifacts
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
| Attribute | Type | Required | Description |
|
|
299
|
-
|------------|---------|----------|---------------------|
|
|
300
|
-
| `id` | integer | yes | The ID of a project |
|
|
301
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
302
|
-
|
|
303
|
-
```
|
|
304
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8/artifacts"
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
Response:
|
|
308
|
-
|
|
309
|
-
| Status | Description |
|
|
310
|
-
|-----------|---------------------------------|
|
|
311
|
-
| 200 | Serves the artifacts file |
|
|
312
|
-
| 404 | Build not found or no artifacts |
|
|
313
|
-
|
|
314
|
-
[ce-2893]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2893
|
|
315
|
-
|
|
316
|
-
## Download the artifacts file
|
|
317
|
-
|
|
318
|
-
> [Introduced][ce-5347] in GitLab 8.10.
|
|
319
|
-
|
|
320
|
-
Download the artifacts file from the given reference name and job provided the
|
|
321
|
-
build finished successfully.
|
|
322
|
-
|
|
323
|
-
```
|
|
324
|
-
GET /projects/:id/builds/artifacts/:ref_name/download?job=name
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
Parameters
|
|
328
|
-
|
|
329
|
-
| Attribute | Type | Required | Description |
|
|
330
|
-
|-------------|---------|----------|-------------------------- |
|
|
331
|
-
| `id` | integer | yes | The ID of a project |
|
|
332
|
-
| `ref_name` | string | yes | The ref from a repository |
|
|
333
|
-
| `job` | string | yes | The name of the job |
|
|
334
|
-
|
|
335
|
-
Example request:
|
|
336
|
-
|
|
337
|
-
```
|
|
338
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/artifacts/master/download?job=test"
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
Example response:
|
|
342
|
-
|
|
343
|
-
| Status | Description |
|
|
344
|
-
|-----------|---------------------------------|
|
|
345
|
-
| 200 | Serves the artifacts file |
|
|
346
|
-
| 404 | Build not found or no artifacts |
|
|
347
|
-
|
|
348
|
-
[ce-5347]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347
|
|
349
|
-
|
|
350
|
-
## Get a trace file
|
|
351
|
-
|
|
352
|
-
Get a trace of a specific build of a project
|
|
353
|
-
|
|
354
|
-
```
|
|
355
|
-
GET /projects/:id/builds/:build_id/trace
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
| Attribute | Type | Required | Description |
|
|
359
|
-
|------------|---------|----------|---------------------|
|
|
360
|
-
| id | integer | yes | The ID of a project |
|
|
361
|
-
| build_id | integer | yes | The ID of a build |
|
|
362
|
-
|
|
363
|
-
```
|
|
364
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8/trace"
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
Response:
|
|
368
|
-
|
|
369
|
-
| Status | Description |
|
|
370
|
-
|-----------|-----------------------------------|
|
|
371
|
-
| 200 | Serves the trace file |
|
|
372
|
-
| 404 | Build not found or no trace file |
|
|
373
|
-
|
|
374
|
-
## Cancel a build
|
|
375
|
-
|
|
376
|
-
Cancel a single build of a project
|
|
377
|
-
|
|
378
|
-
```
|
|
379
|
-
POST /projects/:id/builds/:build_id/cancel
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
| Attribute | Type | Required | Description |
|
|
383
|
-
|------------|---------|----------|---------------------|
|
|
384
|
-
| `id` | integer | yes | The ID of a project |
|
|
385
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
386
|
-
|
|
387
|
-
```
|
|
388
|
-
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/cancel"
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
Example of response
|
|
392
|
-
|
|
393
|
-
```json
|
|
394
|
-
{
|
|
395
|
-
"commit": {
|
|
396
|
-
"author_email": "admin@example.com",
|
|
397
|
-
"author_name": "Administrator",
|
|
398
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
399
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
400
|
-
"message": "Test the CI integration.",
|
|
401
|
-
"short_id": "0ff3ae19",
|
|
402
|
-
"title": "Test the CI integration."
|
|
403
|
-
},
|
|
404
|
-
"coverage": null,
|
|
405
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
406
|
-
"artifacts_file": null,
|
|
407
|
-
"finished_at": "2016-01-11T10:14:09.526Z",
|
|
408
|
-
"id": 69,
|
|
409
|
-
"name": "rubocop",
|
|
410
|
-
"ref": "master",
|
|
411
|
-
"runner": null,
|
|
412
|
-
"stage": "test",
|
|
413
|
-
"started_at": null,
|
|
414
|
-
"status": "canceled",
|
|
415
|
-
"tag": false,
|
|
416
|
-
"user": null
|
|
417
|
-
}
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
## Retry a build
|
|
421
|
-
|
|
422
|
-
Retry a single build of a project
|
|
423
|
-
|
|
424
|
-
```
|
|
425
|
-
POST /projects/:id/builds/:build_id/retry
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
| Attribute | Type | Required | Description |
|
|
429
|
-
|------------|---------|----------|---------------------|
|
|
430
|
-
| `id` | integer | yes | The ID of a project |
|
|
431
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
432
|
-
|
|
433
|
-
```
|
|
434
|
-
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/retry"
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
Example of response
|
|
438
|
-
|
|
439
|
-
```json
|
|
440
|
-
{
|
|
441
|
-
"commit": {
|
|
442
|
-
"author_email": "admin@example.com",
|
|
443
|
-
"author_name": "Administrator",
|
|
444
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
445
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
446
|
-
"message": "Test the CI integration.",
|
|
447
|
-
"short_id": "0ff3ae19",
|
|
448
|
-
"title": "Test the CI integration."
|
|
449
|
-
},
|
|
450
|
-
"coverage": null,
|
|
451
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
452
|
-
"artifacts_file": null,
|
|
453
|
-
"finished_at": null,
|
|
454
|
-
"id": 69,
|
|
455
|
-
"name": "rubocop",
|
|
456
|
-
"ref": "master",
|
|
457
|
-
"runner": null,
|
|
458
|
-
"stage": "test",
|
|
459
|
-
"started_at": null,
|
|
460
|
-
"status": "pending",
|
|
461
|
-
"tag": false,
|
|
462
|
-
"user": null
|
|
463
|
-
}
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
## Erase a build
|
|
467
|
-
|
|
468
|
-
Erase a single build of a project (remove build artifacts and a build trace)
|
|
469
|
-
|
|
470
|
-
```
|
|
471
|
-
POST /projects/:id/builds/:build_id/erase
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
Parameters
|
|
475
|
-
|
|
476
|
-
| Attribute | Type | Required | Description |
|
|
477
|
-
|-------------|---------|----------|---------------------|
|
|
478
|
-
| `id` | integer | yes | The ID of a project |
|
|
479
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
480
|
-
|
|
481
|
-
Example of request
|
|
482
|
-
|
|
483
|
-
```
|
|
484
|
-
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/erase"
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
Example of response
|
|
488
|
-
|
|
489
|
-
```json
|
|
490
|
-
{
|
|
491
|
-
"commit": {
|
|
492
|
-
"author_email": "admin@example.com",
|
|
493
|
-
"author_name": "Administrator",
|
|
494
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
495
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
496
|
-
"message": "Test the CI integration.",
|
|
497
|
-
"short_id": "0ff3ae19",
|
|
498
|
-
"title": "Test the CI integration."
|
|
499
|
-
},
|
|
500
|
-
"coverage": null,
|
|
501
|
-
"download_url": null,
|
|
502
|
-
"id": 69,
|
|
503
|
-
"name": "rubocop",
|
|
504
|
-
"ref": "master",
|
|
505
|
-
"runner": null,
|
|
506
|
-
"stage": "test",
|
|
507
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
508
|
-
"started_at": "2016-01-11T10:13:33.506Z",
|
|
509
|
-
"finished_at": "2016-01-11T10:15:10.506Z",
|
|
510
|
-
"status": "failed",
|
|
511
|
-
"tag": false,
|
|
512
|
-
"user": null
|
|
513
|
-
}
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
## Keep artifacts
|
|
517
|
-
|
|
518
|
-
Prevents artifacts from being deleted when expiration is set.
|
|
519
|
-
|
|
520
|
-
```
|
|
521
|
-
POST /projects/:id/builds/:build_id/artifacts/keep
|
|
522
|
-
```
|
|
523
|
-
|
|
524
|
-
Parameters
|
|
525
|
-
|
|
526
|
-
| Attribute | Type | Required | Description |
|
|
527
|
-
|-------------|---------|----------|---------------------|
|
|
528
|
-
| `id` | integer | yes | The ID of a project |
|
|
529
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
530
|
-
|
|
531
|
-
Example request:
|
|
532
|
-
|
|
533
|
-
```
|
|
534
|
-
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/artifacts/keep"
|
|
535
|
-
```
|
|
536
|
-
|
|
537
|
-
Example response:
|
|
538
|
-
|
|
539
|
-
```json
|
|
540
|
-
{
|
|
541
|
-
"commit": {
|
|
542
|
-
"author_email": "admin@example.com",
|
|
543
|
-
"author_name": "Administrator",
|
|
544
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
545
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
546
|
-
"message": "Test the CI integration.",
|
|
547
|
-
"short_id": "0ff3ae19",
|
|
548
|
-
"title": "Test the CI integration."
|
|
549
|
-
},
|
|
550
|
-
"coverage": null,
|
|
551
|
-
"download_url": null,
|
|
552
|
-
"id": 69,
|
|
553
|
-
"name": "rubocop",
|
|
554
|
-
"ref": "master",
|
|
555
|
-
"runner": null,
|
|
556
|
-
"stage": "test",
|
|
557
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
558
|
-
"started_at": "2016-01-11T10:13:33.506Z",
|
|
559
|
-
"finished_at": "2016-01-11T10:15:10.506Z",
|
|
560
|
-
"status": "failed",
|
|
561
|
-
"tag": false,
|
|
562
|
-
"user": null
|
|
563
|
-
}
|
|
564
|
-
```
|
|
565
|
-
|
|
566
|
-
## Play a build
|
|
567
|
-
|
|
568
|
-
Triggers a manual action to start a build.
|
|
569
|
-
|
|
570
|
-
```
|
|
571
|
-
POST /projects/:id/builds/:build_id/play
|
|
572
|
-
```
|
|
573
|
-
|
|
574
|
-
| Attribute | Type | Required | Description |
|
|
575
|
-
|------------|---------|----------|---------------------|
|
|
576
|
-
| `id` | integer | yes | The ID of a project |
|
|
577
|
-
| `build_id` | integer | yes | The ID of a build |
|
|
578
|
-
|
|
579
|
-
```
|
|
580
|
-
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/play"
|
|
581
|
-
```
|
|
582
|
-
|
|
583
|
-
Example of response
|
|
584
|
-
|
|
585
|
-
```json
|
|
586
|
-
{
|
|
587
|
-
"commit": {
|
|
588
|
-
"author_email": "admin@example.com",
|
|
589
|
-
"author_name": "Administrator",
|
|
590
|
-
"created_at": "2015-12-24T16:51:14.000+01:00",
|
|
591
|
-
"id": "0ff3ae198f8601a285adcf5c0fff204ee6fba5fd",
|
|
592
|
-
"message": "Test the CI integration.",
|
|
593
|
-
"short_id": "0ff3ae19",
|
|
594
|
-
"title": "Test the CI integration."
|
|
595
|
-
},
|
|
596
|
-
"coverage": null,
|
|
597
|
-
"created_at": "2016-01-11T10:13:33.506Z",
|
|
598
|
-
"artifacts_file": null,
|
|
599
|
-
"finished_at": null,
|
|
600
|
-
"id": 69,
|
|
601
|
-
"name": "rubocop",
|
|
602
|
-
"ref": "master",
|
|
603
|
-
"runner": null,
|
|
604
|
-
"stage": "test",
|
|
605
|
-
"started_at": null,
|
|
606
|
-
"status": "started",
|
|
607
|
-
"tag": false,
|
|
608
|
-
"user": null
|
|
609
|
-
}
|
|
610
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# GitLab CI API
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
The main purpose of GitLab CI API is to provide the necessary data and context
|
|
6
|
-
for GitLab CI Runners.
|
|
7
|
-
|
|
8
|
-
All relevant information about the consumer API can be found in a
|
|
9
|
-
[separate document](../../api/README.md).
|
|
10
|
-
|
|
11
|
-
## API Prefix
|
|
12
|
-
|
|
13
|
-
The current CI API prefix is `/ci/api/v1`.
|
|
14
|
-
|
|
15
|
-
You need to prepend this prefix to all examples in this documentation, like:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
GET /ci/api/v1/builds/:id/artifacts
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Resources
|
|
22
|
-
|
|
23
|
-
- [Builds](builds.md)
|
|
24
|
-
- [Runners](runners.md)
|