]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix debian_build: use correct variable name from ENV for JOB_NAME
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:50:47 +0000 (11:50 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:50:47 +0000 (11:50 +0200)
debian_build.py

index 982d16640dd35661f0598574c69e41f54efacfae..a4ed149c9a16d090fa7f9b3769fa119d0c547f7d 100755 (executable)
@@ -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)