Fux up jenkins origin/ branches

This commit is contained in:
David Baker 2018-05-02 16:39:10 +01:00
parent cc16730c23
commit 183947615f

View file

@ -7,7 +7,7 @@ repo="$2"
curbranch="$TRAVIS_PULL_REQUEST_BRANCH" curbranch="$TRAVIS_PULL_REQUEST_BRANCH"
[ -z "$curbranch" ] && curbranch="$TRAVIS_BRANCH" [ -z "$curbranch" ] && curbranch="$TRAVIS_BRANCH"
[ -z "$curbranch" ] && curbranch="$GIT_BRANCH" # jenkins [ -z "$curbranch" ] && curbranch=`"$GIT_BRANCH" | sed -e 's/^origin\///'` # jenkins
if [ -n "$curbranch" ] if [ -n "$curbranch" ]
then then