logger.exception(error)
exit_error()
BUILD_END = datetime.datetime.now()
- # FIXME: must not add development builds... or maybe?
# cidb wise, we only care about builds from master, hotfix + develop
package_instances=[]
if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'):
subprocess.check_call(cmd)
logger.error("package instance not added to DB")
exit_error()
- if len(package_instances) > 0:
+ # 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/')):
try:
add_liveboot_request(package_instances)
except: