From: Holger Levsen Date: Tue, 28 Aug 2012 14:54:02 +0000 (+0200) Subject: checkout (in pbuilder) the same GIT_BRANCH as used in the job X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=dc58f173d7114a68b883bb316111906f723270ee;p=profitbricks%2Fjenkins-build-scripts.git checkout (in pbuilder) the same GIT_BRANCH as used in the job --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 62a82a2..805944b 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -50,7 +50,7 @@ cat > $BUILD_SCRIPT <<-EOF cd /srv/build git clone git://git/ri/liveboot.git cd liveboot -git checkout develop +git checkout $GIT_BRANCH [ -d /srv/build/cache ] && mv /srv/build/cache . ./build.sh $BUILD_NUMBER EOF