if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'):
try:
package_instances = add_package_instances("profitbricks", ENV['JOB_NAME'], ENV['BUILD_NUMBER'], changes_file, version, BUILD_START, BUILD_END)
- except Exception, error:
+ except Exception as error:
cmd = ['figlet-figlet', '-t', 'CIDB problem:']
subprocess.check_call(cmd)
- logger.error("package instance not added to DB")
+ logger.error("package instance not added to DB", exc_info=error)
exit_error()
# only trigger liveboots automatically for builds from master+hotfix/* branches
if len(package_instances) > 0 and ( GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/')):