[Qa-jenkins-scm] [jenkins.debian.net] 03/06: d-i: define GIT_BRANCH since jenkins seems to have stopped doing so

Holger Levsen holger at layer-acht.org
Mon Jul 18 17:59:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 7e8292ff4b05ad1e3b29268a816b4f2abed667d5
Author: Philip Hands <phil at hands.com>
Date:   Fri Jul 15 21:08:23 2016 +0200

    d-i: define GIT_BRANCH since jenkins seems to have stopped doing so
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/d-i_build.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh
index 0196618..e2af277 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list