From 1bcd200ec20a28a1c360afdf097dc4fcaa9c00a8 Mon Sep 17 00:00:00 2001
From: Varac <varac@leap.se>
Date: Thu, 29 Jun 2017 16:51:58 +0200
Subject: [PATCH] [CI] Fail when CI_JOB_NAME is not recognized

---
 tests/platform-ci/ci-build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index abc5fec8..b02fe89d 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -178,10 +178,13 @@ case "$CI_JOB_NAME" in
     TAG='demovpn'
     run bitmask ssh://gitolite@leap.se/bitmask
     ;;
-  *)
+  deploy_test*)
     build_from_scratch
     deploy
     test
     cleanup
     ;;
+  *)
+    fail "Don't know what to do for \$CI_JOB_NAME \"$CI_JOB_NAME\"!"
+    ;;
 esac
-- 
GitLab