Merge "[fuel] Define Docker tag for stable branches"
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 29 Oct 2018 15:27:27 +0000 (15:27 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 29 Oct 2018 15:27:27 +0000 (15:27 +0000)
jjb/fuel/fuel-deploy.sh

index c0cdc3d..e66dbe1 100755 (executable)
@@ -19,6 +19,9 @@ LAB_NAME=${NODE_NAME/-*}
 # shellcheck disable=SC2153
 POD_NAME=${NODE_NAME/*-}
 
+# define Docker tag for stable branches
+[[ "${BRANCH}" != master ]] && export MCP_DOCKER_TAG=${BRANCH##*/}
+
 # Fuel currently supports arm, enea, ericsson, intel, lf, unh and zte labs
 if [[ ! "${LAB_NAME}" =~ (arm|enea|ericsson|intel|lf|unh|zte) ]]; then
     echo "Unsupported/unidentified lab ${LAB_NAME}. Cannot continue!"