]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add check for valid SUITE and let it default to squeeze
authorHolger Levsen <holger@layer-acht.org>
Thu, 25 Jul 2013 14:41:02 +0000 (16:41 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 25 Jul 2013 14:41:02 +0000 (16:41 +0200)
maven_post_build_debian_wrapper.sh

index 8b901d74ff7167695647c3b079f31d5b3e4d10be..b0bf657034b02f2f31107952cd86da34d11253ce 100755 (executable)
 #
 
 SUITE=$1               # this has to be either squeeze or wheezy currently
+if [[ -z "${SUITE}" ]] ; then
+        SUITE="squeeze"
+       echo "Warning: SUITE not definied, defaulting to \"squeeze\"."
+fi
 VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[")
 FEATURE_BRANCHES=("feature/" "poc/" "integration")
 REPO=pb-${SUITE}