Build Logs

Updated 2 years ago by Admin

Please note this api requires read access to the repository.

GET /api/repos/{owner}/{repo}/builds/{build}/logs/{stage}/{step}

Example Response Body:

1   [
2 {
3 "proc": "clone",
4 "pos": 0,
5 "out": "+ git init\n"
6 },
7 {
8 "proc": "clone",
9 "pos": 1,
10 "out": "Initialized empty Git repository in /drone/src/github.com/octocat/hello-world/.git/\n"
11 },
12 {
13 "proc": "clone",
14 "pos": 2,
15 "out": "+ git remote add origin https://github.com/octocat/hello-world.git\n"
16 },
17 {
18 "proc": "clone",
19 "pos": 3,
20 "out": "+ git fetch --no-tags origin +refs/heads/master:\n"
21 },
22 {
23 "proc": "clone",
24 "pos": 4,
25 "out": "From https://github.com/octocat/hello-world\n"
26 },
27 {
28 "proc": "clone",
29 "pos": 5,
30 "out": " * branch master -> FETCH_HEAD\n"
31 },
32 {
33 "proc": "clone",
34 "pos": 6,
35 "out": " * [new branch] master -> origin/master\n"
36 },
37 {
38 "proc": "clone",
39 "pos": 7,
40 "out": "+ git reset --hard -q 62126a02ffea3dabd7789e5c5407553490973665\n"
41 },
42 {
43 "proc": "clone",
44 "pos": 8,
45 "out": "+ git submodule update --init --recursive\n"
46 }
47 ]


How did we do?