]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
checkout (in pbuilder) the same GIT_BRANCH as used in the job
authorHolger Levsen <holger@layer-acht.org>
Tue, 28 Aug 2012 14:54:02 +0000 (16:54 +0200)
committerHolger Levsen <holger@layer-acht.org>
Tue, 28 Aug 2012 14:54:02 +0000 (16:54 +0200)
liveboot_build.sh

index 62a82a2d966345777fb33f8179f29599e2851baf..805944b57a586205d6a518fcb7abc4f58865d37a 100755 (executable)
@@ -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