Currently, the debug mode is only enabled for the apache/openwhisk repository.

If you want to enable it for another repository, you need to send a request to support@travis-ci.com.

Find more information about it here: https://docs.travis-ci.com/user/running-build-in-debug-mode/#enabling-debug-mode


Copy the API token

You can copy your API token at https://travis-ci.com/profile.



Find the Travis job ID.

The job ID is available in the build system information in the job log.



Run the job with the debug mode enabled.

You can call the rest API to run a job with the debug mode.


You can use the following script.

#! /usr/bin/env bash
echo "JOB_ID: $1"

curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ${YOUR_API_TOKEN}" \
-d '{ "quiet": true }' \
https://api.travis-ci.com/job/$1/debug
$ ./run-travis-debug-job.sh 469779501


Connect to the VM.

You can find the ssh command with an endpoint in the job log.


You can simply copy and paste the command.

$ ssh 7n6TwDcB5N6F6CZVZf9Meuuwk@nyc1.tmate.io

You got into the Travis VM now : )

Generally, you may want to follow the steps in .travis.yml#L56 to debug CI tests.

You will find this useful: https://docs.travis-ci.com/user/running-build-in-debug-mode/#things-to-do-once-you-are-inside-the-debug-vm


  • No labels