From e2943d22cb3a1bd42f78ecff8e657008ba8659b7 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Sun, 26 May 2013 01:36:07 +0200 Subject: [PATCH] common_code: too intrusive too remove env GIT_BRANCH_NAME: let's just take the GIT_BRANCH env var exposed by default from jenkins git plugin, this might confuse users if both variables uses different values --- common_code.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common_code.py b/common_code.py index 48f7735..403c35d 100755 --- a/common_code.py +++ b/common_code.py @@ -48,6 +48,7 @@ def exit_error(): ENV = os.environ ENV.setdefault('ARGV',' '.join(sys.argv)) ENV.setdefault('CWD',os.getcwd()) +ENV['GIT_BRANCH_NAME'] = ENV['GIT_BRANCH'] BIN_DCH = '/usr/bin/dch' BIN_DPUT = '/usr/bin/dput' -- 2.39.5