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']
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)