]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
set some default which we use to define as parameters in jenkins
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 16:46:27 +0000 (18:46 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 17:03:11 +0000 (19:03 +0200)
common_code.py

index 9871484e6cae87a5b8156becec1adf686ca0e715..891011398c26fa18379b20ba0df93715b79cb446 100755 (executable)
@@ -42,6 +42,8 @@ def exit_error():
 ENV = os.environ
 ENV.setdefault('ARGV',' '.join(sys.argv))
 ENV.setdefault('NO_UPLOAD','')
+ENV.setdefault('GIT_REPO_PATH','') # find out without need of Jenkins parameters
+ENV.setdefault('GIT_BRANCH_NAME',ENV['GIT_BRANCH'])
 
 BIN_GIT = '/usr/bin/git'
 BIN_RM = '/bin/rm'