From: Holger Levsen Date: Thu, 21 Jun 2012 11:23:26 +0000 (+0200) Subject: also rsync result X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=0129927ded4ee0d104c9da4e5a1eb0f03b83273b;p=profitbricks%2Fjenkins-build-scripts.git also rsync result --- diff --git a/live_build.sh b/live_build.sh index 0367523..f16f6f0 100755 --- a/live_build.sh +++ b/live_build.sh @@ -11,4 +11,24 @@ cd pserver.flexible sudo bash ./lb_build.sh ls -larth tftpboot/debian-live/amd64/ ls -larth binary/live/ + + figlet "success" + +BUILDDATE=$(date +%Y%m%d%H%M) + +BUILD_ID="${BUILDDATE}-${BUILD_NUMBER}" +BUILD_TARGET=/srv/mirror/live-build/$BUILD_ID + +mkdir -p $BUILD_TARGET + +echo "Now copying results..." +# hack to ignore 2.6.32 kernel + initrd +cp -v tftpboot/debian-live/amd64/initrd.img-3* tftpboot/debian-live/amd64/vmlinuz-3* $BUILD_TARGET/ +cp -v binary/live/filesystem.squashfs $BUILD_TARGET/ + +echo "Now rsyncing results to mgmt1..." +#rsync --password-file /etc/rsynclivebuild-send.pass -av --delete /srv/mirror/live-build/ rsync://livebuild@10.1.1.1/livebuild/* +rsync --password-file /etc/rsynclivebuild-send.pass -av /srv/mirror/live-build/ rsync://livebuild@10.1.1.1/livebuild/* + +figlet "rsync success"