summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-10-30 17:38:19 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-10-30 17:43:40 +0100
commit34d72eb1a6e276473953099359605cc555a7bcf7 (patch)
treeb2ae8255c2c8878e2ae138868a34a1044bcdc387
parent00431827b1a41f55fb700e69bfb229ccebc9c3f0 (diff)
Write the right default values in DOCKER_TAG
It avoids facing with wrong substitutions [1] [1] https://build.opnfv.org/ci/job/functest-apex-baremetal-daily-gambia/23/console Change-Id: I4b8c990add51024d7984cd10668a33dd7c50c395 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--jjb/apex/apex.yaml3
-rw-r--r--jjb/apex/apex.yaml.j23
2 files changed, 4 insertions, 2 deletions
diff --git a/jjb/apex/apex.yaml b/jjb/apex/apex.yaml
index 454c69057..8fd976ad1 100644
--- a/jjb/apex/apex.yaml
+++ b/jjb/apex/apex.yaml
@@ -586,7 +586,8 @@
echo "DOCKER_TAG=hunter" > functest_scenario
else
functest_scenario=$DEPLOY_SCENARIO
- echo "DOCKER_TAG=''" > functest_scenario
+ echo "DOCKER_TAG=$([[ ${BRANCH##*/} == "master" ]] && \
+ echo "latest" || echo ${BRANCH##*/})" > functest_scenario
fi
echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_scenario
- inject:
diff --git a/jjb/apex/apex.yaml.j2 b/jjb/apex/apex.yaml.j2
index daf2ce8b7..b2deb7313 100644
--- a/jjb/apex/apex.yaml.j2
+++ b/jjb/apex/apex.yaml.j2
@@ -432,7 +432,8 @@
echo "DOCKER_TAG=hunter" > functest_scenario
else
functest_scenario=$DEPLOY_SCENARIO
- echo "DOCKER_TAG=''" > functest_scenario
+ echo "DOCKER_TAG=$([[ ${BRANCH##*/} == "master" ]] && \
+ echo "latest" || echo ${BRANCH##*/})" > functest_scenario
fi
echo "DEPLOY_SCENARIO=$functest_scenario" >> functest_scenario
- inject: