]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
common_code: GIT_BRANCH_NAME = GIT_BRANCH only if not already given
authorMathias Klette <mathias.klette@profitbricks.com>
Wed, 29 May 2013 12:07:56 +0000 (14:07 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Wed, 29 May 2013 12:07:56 +0000 (14:07 +0200)
common_code.py

index 403c35d6739b608814cc70f24252a7a725bdee48..f2ad5d8ee8fe8895f6c484ccc34034ccf1d14a51 100755 (executable)
@@ -48,7 +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']
+ENV.setdefault('GIT_BRANCH_NAME', ENV['GIT_BRANCH'])
 
 BIN_DCH = '/usr/bin/dch'
 BIN_DPUT = '/usr/bin/dput'