From: Mathias Klette Date: Sat, 25 May 2013 23:36:07 +0000 (+0200) Subject: common_code: too intrusive too remove env GIT_BRANCH_NAME: X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e2943d22cb3a1bd42f78ecff8e657008ba8659b7;p=profitbricks%2Fjenkins-build-scripts.git 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 --- 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'