Skip to content

Commit

Permalink
Merge pull request travis-ci#3376 from travis-ci/tbt-39-job-restarted…
Browse files Browse the repository at this point in the history
…-variables

TBT-39 Add job restarted env variables in docs
  • Loading branch information
murtaza-swati authored Jul 12, 2024
2 parents 44bf378 + 2943e4f commit 2770fd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ to tag the build, or to run post-build deployments.
- `TRAVIS_TEST_RESULT`: **0** if all commands in the `script` section (up to the point this environment variable is referenced) have exited with zero; **1** otherwise.
- `TRAVIS_TAG`: If the current build is for a git tag, this variable is set to the tag's name, otherwise it is empty (`""`).
- `TRAVIS_BUILD_STAGE_NAME`: The [build stage](/user/build-stages/). If a build does not use build stages, this variable is empty (`""`).
- `TRAVIS_JOB_RESTARTED`:
+ set to `true` if the build is restarted.
+ set to `false` if the build has not been restarted.
- `TRAVIS_JOB_RESTARTED_BY`: The login of the user triggering the restart.

Language-specific builds expose additional environment variables representing
the current version being used to run the build. Whether or not they're set
Expand Down

0 comments on commit 2770fd5

Please sign in to comment.