From b63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe Mon Sep 17 00:00:00 2001 From: Tomas Kulhanek Date: Tue, 22 Jan 2019 15:03:38 +0000 Subject: UPDATE 2: check git branch, upload master build --- build/jenkins-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/jenkins-build.sh b/build/jenkins-build.sh index 03de4e6..b8b2aef 100755 --- a/build/jenkins-build.sh +++ b/build/jenkins-build.sh @@ -47,7 +47,7 @@ echo files created: $REG_FILES # upload to anaconda only if token is defined # and TODO pull request not to upload -GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` +GIT_BRANCH=`git symbolic-ref --short HEAD` echo on branch ${GIT_BRANCH} if [[ -n ${CCPI_CONDA_TOKEN} ]]; then -- cgit v1.2.3