From 7761642c8b288840c9afc385a0982a2e4f873818 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 16 Jun 2016 15:40:05 +0200 Subject: check for accepted branches --- buildscripts/build-on-greyhound.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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=$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 -- cgit v1.2.3