summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-16 15:40:05 +0200
committervarac <varacanero@zeromail.org>2016-06-16 15:40:05 +0200
commit7761642c8b288840c9afc385a0982a2e4f873818 (patch)
tree6134009767f868526933aa88151686903c158b14
parent99a38324ae266b6e7597043b2b007fbda1d8555c (diff)
check for accepted branches
-rwxr-xr-xbuildscripts/build-on-greyhound.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildscripts/build-on-greyhound.sh b/buildscripts/build-on-greyhound.sh
index b4d5e21..8c9e6fe 100755
--- a/buildscripts/build-on-greyhound.sh
+++ b/buildscripts/build-on-greyhound.sh
@@ -1,8 +1,11 @@
-#!/bin/sh
+#!/bin/bash
# triggers a CI test on greyhound using leap local
# usage: ./build-on-greyhound.sh <branch>
branch=$1
+ACCEPTED_BRANCHES='(develop|citest)'
+
+[[ $branch =~ $ACCEPTED_BRANCHES ]] || ( echo "CI builds only possible for these branches: $ACCEPTED_BRANCHES "; exit 1)
. /etc/leap/rewire_${branch}.cfg
. /etc/leap/platform-test-common.cfg