else:
log_level = logging.DEBUG
except KeyError as e:
- log_level = logging.NOTSET
+ log_level = logging.WARN
logging.basicConfig(
format = log_format,
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'
# 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']