From: Holger Levsen Date: Thu, 23 Aug 2012 11:08:48 +0000 (+0200) Subject: keep images + preserve cache X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=6af162ef2040a29bfbe29ecf0a9693e89e5bf128;p=profitbricks%2Fjenkins-build-scripts.git keep images + preserve cache --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 5a9fd91..a17dc49 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -15,7 +15,7 @@ figlet "this is work in progress" BUILD_SCRIPT=$(mktemp) cat > $BUILD_SCRIPT <<-EOF -cd /srv/build/liveboot +cd /srv/build apt-get -y install debootstrap ldap-utils git clone git://git/ri/liveboot.git cd liveboot @@ -23,6 +23,13 @@ git checkout feature/jenkins ./build.sh $BUILD_NUMBER EOF -sudo pbuilder --execute --bindmounts /srv/build/liveboot -- $BUILD_SCRIPT +sudo pbuilder --execute --bindmounts /srv/build/ -- $BUILD_SCRIPT -ls /srv/build/liveboot/builds +cd /srv/build/liveboot/builds +mv *-* /srv/mirror/liveboot +cd /srv/build/liveboot +mv cache .. +cd .. +rm liveboot -Rf +mkdir liveboot +mv cache liveboot