From: Holger Levsen Date: Thu, 21 Jun 2012 12:15:30 +0000 (+0200) Subject: support $LIVE_TYPE X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=07cbca81e7ddcc063f2792983705c49c57d2fa72;p=profitbricks%2Fjenkins-build-scripts.git support $LIVE_TYPE --- diff --git a/live_build.sh b/live_build.sh index 8bac72b..d8404e4 100755 --- a/live_build.sh +++ b/live_build.sh @@ -3,10 +3,16 @@ set -e +if [ "$LIVE_TYPE" == "" ] ; then + echo 'please supply $LIVE_TYPE environment variable' + exit 0 +fi + +figlet "building $LIVE_TYPE" cd pserver.flexible sudo bash ./lb_build.sh mrproper -sudo bash ./lb_build.sh +sudo bash ./lb_build.sh -p $LIVE_TYPE ls -larth tftpboot/debian-live/amd64/ ls -larth binary/live/ @@ -14,7 +20,7 @@ figlet "success" BUILDDATE=$(date +%Y%m%d%H%M) -BUILD_ID="${BUILDDATE}-${BUILD_NUMBER}" +BUILD_ID="${LIVE_TYPE}-${BUILDDATE}-${BUILD_NUMBER}" BUILD_TARGET=/srv/mirror/live-build/$BUILD_ID mkdir -p $BUILD_TARGET