From: Mathias Klette Date: Thu, 2 May 2013 09:50:47 +0000 (+0200) Subject: fix debian_build: use correct variable name from ENV for JOB_NAME X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d2778769161f85ffcaf36d3b48d24b1dddb2e390;p=profitbricks%2Fjenkins-build-scripts.git fix debian_build: use correct variable name from ENV for JOB_NAME --- diff --git a/debian_build.py b/debian_build.py index 982d166..a4ed149 100755 --- a/debian_build.py +++ b/debian_build.py @@ -295,7 +295,7 @@ if __name__ == '__main__': else: logger.debug('Status is now:\n%s' %( gitcmd.status().strip() )) - if GIT_BRANCH_NAME == 'master' and ENV['BUILD_JOBNAME'] in AUTO_CHANGELOG_JOBS: + if GIT_BRANCH_NAME == 'master' and ENV['JOB_NAME'] in AUTO_CHANGELOG_JOBS: cmd = ['/usr/bin/dch', '-i', 'Released by jenkins.'] subprocess.check_call(cmd) cmd = ['/usr/bin/git-dch', '-R', '-a', '--spawn-editor=none'] @@ -630,7 +630,7 @@ if __name__ == '__main__': package_instances=[] if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'): try: - package_instances = add_package_instances("profitbricks", ENV['BUILD_JOBNAME'], ENV['BUILD_NUMBER'], changes_file, version, BUILD_START, BUILD_END) + package_instances = add_package_instances("profitbricks", ENV['JOB_NAME'], ENV['BUILD_NUMBER'], changes_file, version, BUILD_START, BUILD_END) except Exception, error: cmd = ['figlet-figlet', '-t', 'CIDB problem:'] subprocess.check_call(cmd)