From 98ea8326169be3819bc7b935613b1a73e6732758 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 21 Jun 2013 13:33:31 +0200 Subject: [PATCH] move GIT_BRANCH_NAME definitions from common_code to debian_build (again) --- common_code.py | 5 +---- debian_build.py | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common_code.py b/common_code.py index 2cb344c..aaa3637 100755 --- a/common_code.py +++ b/common_code.py @@ -31,7 +31,7 @@ def logger_init( else: log_level = logging.DEBUG except KeyError as e: - log_level = logging.NOTSET + log_level = logging.WARN logging.basicConfig( format = log_format, @@ -52,9 +52,6 @@ def exit_error(): ENV = os.environ ENV.setdefault('ARGV',' '.join(sys.argv)) ENV.setdefault('CWD',os.getcwd()) -ENV.setdefault('GIT_BRANCH_NAME', ENV['GIT_BRANCH']) -if ENV['GIT_BRANCH'] != ENV['GIT_BRANCH_NAME']: - ENV['GIT_BRANCH'] = ENV['GIT_BRANCH_NAME'] BIN_DCH = '/usr/bin/dch' BIN_DPUT = '/usr/bin/dput' diff --git a/debian_build.py b/debian_build.py index ae16261..6ed54bb 100755 --- a/debian_build.py +++ b/debian_build.py @@ -34,6 +34,9 @@ logger = logger_init(re.match('^(.*/jenkins_build_script/)(.*)',__file__).groups # jenkins environment - parameters ENV.setdefault('NO_UPLOAD', '') ENV.setdefault('BUILD_TRIGGERS', '') +ENV.setdefault('GIT_BRANCH_NAME', ENV['GIT_BRANCH']) +if ENV['GIT_BRANCH'] != ENV['GIT_BRANCH_NAME']: + ENV['GIT_BRANCH'] = ENV['GIT_BRANCH_NAME'] #ENV.setdefault('DISTRIBUTION', 'squeeze') #GIT_REPO_PATH = ENV['GIT_REPO_PATH'] -- 2.39.5