From 9b8488f00774b199ae073e4fcc3d9f20ce5539b6 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 20 Dec 2016 23:59:15 +0000 Subject: [PATCH] build: fix publish-build-artifacts branch detection (#13599) --- scripts/publish/publish-build-artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish/publish-build-artifacts.sh b/scripts/publish/publish-build-artifacts.sh index a76e9dbb46..9b1ef1fed3 100755 --- a/scripts/publish/publish-build-artifacts.sh +++ b/scripts/publish/publish-build-artifacts.sh @@ -97,7 +97,7 @@ function publishPackages { } # See DEVELOPER.md for help -BRANCH=`git rev-parse --abbrev-ref HEAD` +BRANCH=${TRAVIS_BRANCH:-$(git symbolic-ref --short HEAD)} if [ $# -gt 0 ]; then ORG=$1 publishPackages "ssh"