]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
common_code: too intrusive too remove env GIT_BRANCH_NAME:
authorMathias Klette <mathias.klette@profitbricks.com>
Sat, 25 May 2013 23:36:07 +0000 (01:36 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Sat, 25 May 2013 23:36:07 +0000 (01:36 +0200)
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

index 48f77351176c5f2ad79f86864ee0bf57560416aa..403c35d6739b608814cc70f24252a7a725bdee48 100755 (executable)
@@ -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'