From 7e8292ff4b05ad1e3b29268a816b4f2abed667d5 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Fri, 15 Jul 2016 21:08:23 +0200 Subject: d-i: define GIT_BRANCH since jenkins seems to have stopped doing so Signed-off-by: Holger Levsen --- bin/d-i_build.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 01966181..e2af277d 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -12,6 +12,8 @@ RESULT_DIR=$(readlink -f ..) ISO_DIR=/srv/d-i/isos LVC_HOST=profitbricks-build10-amd64.debian.net +[ -v GIT_BRANCH ] || GIT_BRANCH="$(git branch -r --contains $GIT_COMMIT | tail -1 | cut -c3-)" + clean_workspace() { # # clean -- cgit v1.2.3-70-g09d2