From 6af162ef2040a29bfbe29ecf0a9693e89e5bf128 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 23 Aug 2012 13:08:48 +0200 Subject: [PATCH] keep images + preserve cache --- liveboot_build.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -- 2.39.5