From: Mathias Klette Date: Tue, 30 Apr 2013 16:46:27 +0000 (+0200) Subject: set some default which we use to define as parameters in jenkins X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c8a50ae72922e63296a50c850fdf82444282289f;p=profitbricks%2Fjenkins-build-scripts.git set some default which we use to define as parameters in jenkins --- diff --git a/common_code.py b/common_code.py index 9871484..8910113 100755 --- a/common_code.py +++ b/common_code.py @@ -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'