]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
export BUILD_ID as its used inside lb_build.sh
authorHolger Levsen <holger@layer-acht.org>
Fri, 22 Jun 2012 11:49:43 +0000 (13:49 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 22 Jun 2012 11:49:43 +0000 (13:49 +0200)
live_build.sh

index ffc4a106de3229e4a7974e2d670fa598c05d443c..e9992e4938c8c85fd946bec73cc8b7d88130c861 100755 (executable)
@@ -11,7 +11,7 @@ fi
 BUILDDATE=$(date +%Y%m%d%H%M)
 TARGET_BASE=/srv/mirror/live-build
 
-BUILD_ID="${LIVE_TYPE}-${BUILDDATE}-${BUILD_NUMBER}"
+export BUILD_ID="${LIVE_TYPE}-${BUILDDATE}-${BUILD_NUMBER}"            # BUILD_ID is used without lb_build.sh...
 BUILD_TARGET=$TARGET_BASE/$BUILD_ID
 
 figlet "building $LIVE_TYPE with build_id $BUILD_ID"
@@ -19,9 +19,6 @@ figlet "building $LIVE_TYPE with build_id $BUILD_ID"
 cd pserver.flexible
 sudo bash ./lb_build.sh mrproper
 sudo bash ./lb_build.sh -p office-proxy,$LIVE_TYPE
-#
-# TODO: echo $BUILD_ID > $live_buildchroot/etc/profitbricks-live-build-ID
-#
 
 ls -larth tftpboot/debian-live/amd64/
 ls -larth binary/live/