Buildの再開
指定されたビルドを再開します。このAPIにはリポジトリへの読み取りおよび書き込みアクセスが必要であり、リクエストパラメータ{build}
はビルドIDではなくビルド番号であることに注意してください。
POST /api/repos/{owner}/{repo}/builds/{build}
レスポンス本文の例:
1 {
2 "id": 100207,
3 "repo_id": 296163,
4 "number": 42,
5 "status": "pending",
6 "event": "pull_request",
7 "action": "sync",
8 "link": "https://github.com/octoat/hello-world/compare/e3320539a4c0...9fc1ad6ebf12",
9 "message": "updated README",
10 "before": "e3320539a4c03ccfda992641646deb67d8bf98f3",
11 "after": "9fc1ad6ebf12462f3f9773003e26b4c6f54a772e",
12 "ref": "refs/heads/master",
13 "source_repo": "spaceghost/hello-world",
14 "source": "develop",
15 "target": "master",
16 "author_login": "octocat",
17 "author_name": "The Octocat",
18 "author_email": "octocat@github.com",
19 "author_avatar": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
20 "sender": "bradrydzewski",
21 "started": 0,
22 "finished": 0,
23 "created": 1564085874,
24 "updated": 1564085874,
25 "version": 1,
26 "stages": [
27 {
28 "id": 199937,
29 "repo_id": 296163,
30 "build_id": 100207,
31 "number": 1,
32 "name": "default",
33 "kind": "pipeline",
34 "type": "docker",
35 "status": "pending",
36 "errignore": false,
37 "exit_code": 0,
38 "machine": "15e89c0f84f1",
39 "os": "linux",
40 "arch": "amd64",
41 "started": 0,
42 "stopped": 0,
43 "created": 1564085874,
44 "updated": 1564086343,
45 "version": 1,
46 "on_success": true,
47 "on_failure": false
48 }
49 ]
50 }