From: Mathias Klette Date: Tue, 30 Apr 2013 17:39:17 +0000 (+0200) Subject: update debian_build: move variable definition above so it's defined before first... X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=99ec1f624f416dda05783e56c7eb9cf67050afd1;p=profitbricks%2Fjenkins-build-scripts.git update debian_build: move variable definition above so it's defined before first usage --- diff --git a/debian_build.py b/debian_build.py index 3ba67cf..b3fa078 100755 --- a/debian_build.py +++ b/debian_build.py @@ -46,6 +46,14 @@ DEFAULT_PARALLEL_JOBS = cpu_count() + 1 JOB_URL = 'http://jenkins:80/job/%(flavour)s/buildWithParameters?token=BuildIt&' JOB_DELAY = '0sec' +GIT_REPO_PATH = ENV['GIT_REPO_PATH'] +GIT_REPO_NAME = os.path.basename(ENV['GIT_REPO_PATH']) +GIT_BRANCH_NAME = ENV['GIT_BRANCH_NAME'] +GIT_COMMITTER_EMAIL = ENV['GIT_COMMITTER_EMAIL'] + +ENV.setdefault('NO_UPLOAD','') +NO_UPLOAD = ENV['NO_UPLOAD'] + #unused: (except in in-active code) GIT_TARGET_WORKSPACE = os.path.join( CWD, @@ -75,14 +83,6 @@ DPUT_OPTIONS_DEV = { } DPUT_CF = os.path.join(CWD, '..', 'dput.cf') -GIT_REPO_PATH = ENV['GIT_REPO_PATH'] -GIT_REPO_NAME = os.path.basename(ENV['GIT_REPO_PATH']) -GIT_BRANCH_NAME = ENV['GIT_BRANCH_NAME'] -GIT_COMMITTER_EMAIL = ENV['GIT_COMMITTER_EMAIL'] - -ENV.setdefault('NO_UPLOAD','') -NO_UPLOAD = ENV['NO_UPLOAD'] - AUTO_CHANGELOG_JOBS = ( 'ri-docs', 'so-docs',