summaryrefslogtreecommitdiffstats
path: root/build/jenkins-build.sh
diff options
context:
space:
mode:
authorTomas Kulhanek <tomas.kulhanek@stfc.ac.uk>2019-01-22 15:03:38 +0000
committerTomas Kulhanek <tomas.kulhanek@stfc.ac.uk>2019-01-22 15:03:38 +0000
commitb63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe (patch)
tree32296d7c66eaf9c4ae2de8d7111c9e04db9093d4 /build/jenkins-build.sh
parente7f26cab5e6522d521c6b0e42f1991c3e7c0ac7d (diff)
downloadregularization-b63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe.tar.gz
regularization-b63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe.tar.bz2
regularization-b63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe.tar.xz
regularization-b63188fc01a6c0a2bf9637ed1660d0dbdd48e6fe.zip
UPDATE 2: check git branch, upload master build
Diffstat (limited to 'build/jenkins-build.sh')
-rwxr-xr-xbuild/jenkins-build.sh2
1 files changed, 1 insertions, 1 deletions
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