Job triggered by tag but TRAVIS_BRANCH is different to TRAVIS_TAG

Link to build with example of bug: Travis CI - Test and Deploy with Confidence

In the documentation, the TRAVIS_BRANCH environment variable should be equal to the TRAVIS_TAG when the build is triggered by a tag:

for builds triggered by a tag, this is the same as the name of the tag (TRAVIS_TAG )

Link to documentation section: Environment Variables - Travis CI

In the build linked above, the two variable are different, despite the build being triggered by a tag. Builds that we ran last week did not exhibit this behaviour.

Many thanks!

1 Like

Hi @jdhayhurst,

This should resolved now.