Skip to content

Commit 1704d5d

Browse files
add job restarted env variables documentation
1 parent 44bf378 commit 1704d5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

user/environment-variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ to tag the build, or to run post-build deployments.
231231
- `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.
232232
- `TRAVIS_TAG`: If the current build is for a git tag, this variable is set to the tag's name, otherwise it is empty (`""`).
233233
- `TRAVIS_BUILD_STAGE_NAME`: The [build stage](/user/build-stages/). If a build does not use build stages, this variable is empty (`""`).
234+
- `TRAVIS_JOB_RESTARTED`:
235+
+ set to `true` if the build is restarted.
236+
+ set to `false` if the build has not been restarted.
237+
- `TRAVIS_JOB_RESTARTED_BY`: the login of the user triggering the restart.
234238

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

0 commit comments

Comments
 (0)