summaryrefslogtreecommitdiff
path: root/tests/platform-ci/ci-build.sh
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-29 16:40:57 +0200
committerVarac <varac@leap.se>2017-06-30 17:34:07 +0200
commita3fc434020da4ea8fb447536fd37906ca0a8d890 (patch)
tree0765b4e91e7032535019bc044d43ba4e34e0693b /tests/platform-ci/ci-build.sh
parentc2cc39e63b7afbc755c81e94f34791c605fb092b (diff)
[CI] Use CI_JOB_NAME to determine what action to take
Diffstat (limited to 'tests/platform-ci/ci-build.sh')
-rwxr-xr-xtests/platform-ci/ci-build.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index e2485c0a..b554b1d3 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -92,7 +92,7 @@ build_from_scratch() {
pwd
-# remove old cached nodes
+ # remove old cached nodes
echo "Removing old cached nodes..."
find nodes -name 'citest*' -exec rm {} \;
@@ -149,16 +149,16 @@ set +x
# Enable xtrace again only if it was set at beginning of script
[[ $xtrace == true ]] && set -x
-case "$CI_ENVIRONMENT_NAME" in
- staging)
+case "$CI_JOB_NAME" in
+ ci.leap.se)
TAG='latest'
run ibex ssh://gitolite@leap.se/ibex
;;
- production/demo/mail)
+ mail.bitmask.net)
TAG='demomail'
run bitmask ssh://gitolite@leap.se/bitmask
;;
- production/demo/vpn)
+ demo.bitmask.net)
TAG='demovpn'
run bitmask ssh://gitolite@leap.se/bitmask
;;