Skip to content

Commit c7bc3e5

Browse files
authored
Merge pull request travis-ci#1288 from nh2/patch-1
running-build-in-debug-mode.md: Explain what kind of ID is needed and…
2 parents ccfa98e + 5f802fa commit c7bc3e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

user/running-build-in-debug-mode.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ $ curl -s -X POST \
4343
https://api.travis-ci.org/job/${id}/debug
4444
```
4545

46+
(Note the literal word `token` must be present before the actual authorization token.)
47+
4648
For private repositories, the API endpoint is `https://api.travis-ci.com/job/${id}/debug`.
4749

50+
#### Finding the job ID
51+
52+
The `${id}` is a job ID, not a build ID. For example, the ID `248927956` in the URL [`https://travis-ci.org/travis-ci/docs-travis-ci-com/builds/248927956`](https://travis-ci.org/travis-ci/docs-travis-ci-com/builds/248927956) is a build ID. To obtain the corresponding job ID, click the _View config_ button on that page, and the URL will change into [`https://travis-ci.org/travis-ci/docs-travis-ci-com/jobs/248927957/config`](https://travis-ci.org/travis-ci/docs-travis-ci-com/jobs/248927957/config), showing the job ID `248927957`. Alternatively, you can obtain job IDs corresponding to a build ID [via the API](https://docs.travis-ci.com/api/#builds).
53+
4854
#### Echoing debug session's output to the logs
4955

5056
To show any command input and output you see while connected to the VM running in the debug

0 commit comments

Comments
 (0)