]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
support $LIVE_TYPE
authorHolger Levsen <holger@layer-acht.org>
Thu, 21 Jun 2012 12:15:30 +0000 (14:15 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 21 Jun 2012 12:15:30 +0000 (14:15 +0200)
live_build.sh

index 8bac72b1df06e0c863fb1ea59138f276df6192f3..d8404e4e257d4e2912d067c6ada6fed6fa5d4abb 100755 (executable)
@@ -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