diff options
Diffstat (limited to 'jjb/opnfv/opnfv-docker.sh')
-rw-r--r-- | jjb/opnfv/opnfv-docker.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/opnfv/opnfv-docker.sh b/jjb/opnfv/opnfv-docker.sh index 81bab33bb..02ceecfd8 100644 --- a/jjb/opnfv/opnfv-docker.sh +++ b/jjb/opnfv/opnfv-docker.sh @@ -67,14 +67,14 @@ else exit 1 fi - # Get tag version branch=$(git rev-parse --abbrev-ref HEAD) +echo "Current branch: $branch" + if [ $branch == "master" ]; then DOCKER_TAG="master" else - cd $WORKSPACE - git clone https://gerrit.opnfv.org/gerrit/releng + git clone https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng DOCKER_TAG=$($WORKSPACE/releng/utils/calculate_version.sh -t docker \ -n $DOCKER_REPO_NAME) |