Skip to content

Commit

Permalink
Find branch name for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Aug 5, 2019
1 parent a52f6ed commit 44c4dc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis/fixup-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ if [ "$TRAVIS_COMMIT_ACTUAL" != "$TRAVIS_COMMIT" ]; then
TRAVIS_COMMIT=$TRAVIS_COMMIT_ACTUAL
fi

if [ z"$TRAVIS_BRANCH" = z ]; then
if [ z"$BUILD_SOURCEBRANCH" != z ]; then
TRAVIS_BRANCH="$BUILD_SOURCEBRANCH"
elif [ z"$SYSTEM_PULLREQUEST_TARGETBRANCH" != z ]; then
TRAVIS_BRANCH="$SYSTEM_PULLREQUEST_TARGETBRANCH"
fi
fi

if [ z"$TRAVIS_BRANCH" != z ]; then
echo ""
echo ""
Expand Down

0 comments on commit 44c4dc4

Please sign in to comment.