From: Holger Levsen Date: Thu, 13 Sep 2012 09:43:28 +0000 (+0200) Subject: housekeeping X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f7ee3ac12ec10b9d53aca8104df5fd6e8522d675;p=profitbricks%2Fjenkins-build-scripts.git housekeeping --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 60983dc..8a4a24f 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -4,6 +4,7 @@ # GPL2 licenced set -e +#set -x export # @@ -14,7 +15,7 @@ export PB_SUITE=production-proposed-updates RSYNC_SRC=/srv/mirror/liveboot RSYNC_FILTER='' -# WORK IN PROGRESS +# TODO: WORK IN PROGRESS # ri server RSYNC_DST1="liveboot@riserver/liveboot/" # pbb (mgmt5) @@ -22,7 +23,6 @@ RSYNC_DST2="liveboot@10.254.1.1/liveboot/" # staging (mgmt9) RSYNC_DST3="liveboot@10.252.1.1/liveboot/" -figlet "still work in progress, but... getting there" BUILD_SCRIPT=$(mktemp) cat > $BUILD_SCRIPT <<-EOF @@ -34,7 +34,7 @@ git checkout $GIT_BRANCH ./build.sh $BUILD_NUMBER $GIT_BRANCH EOF sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT - +rm $BUILD_SCRIPT # FIXME: too much sudo here... cd /srv/build/liveboot/builds @@ -58,6 +58,7 @@ figlet "mirror to staging OK" echo "mirror to DCs is MISSING" +# TODO: garbage collection # # cleanup /srv/mirror, keep MAX number of images # @@ -73,6 +74,8 @@ echo "mirror to DCs is MISSING" # fi #done -#figlet "cleanup OK" echo -n "cleanup DISABLED: " du -sh /srv/mirror/liveboot + +figlet "OK" +