do_triggers = True
if re.match(STABLE_BRANCHES_RE, ENV['GIT_BRANCH']):
+ if re.match('^(ps_|dev_).*$', ENV['JOB_NAME']):
+ logger.error('Use the appropriate job to build for branch "%s"!' %(
+ ENV['GIT_BRANCH']
+ ))
+ exit_error()
new_dist = 'stable'
- new_version = '{version}'.format(
- version = curr_version,
- )
+ new_version = '{version}'.format(version = curr_version)
pb_suite = 'master-' + ENV['DISTRIBUTION']
# replace valid debian version chars that are invalid for git tagging
new_tag = curr_version.replace('~','_')
})
elif re.match(UNSTABLE_BRANCHES_RE, ENV['GIT_BRANCH']):
+ if not re.match('^ps_.*$', ENV['JOB_NAME']):
+ logger.error('Use the appropriate job to build for branch "%s"!' %(
+ ENV['GIT_BRANCH']
+ ))
+ exit_error()
new_dist = 'unstable'
new_version = '{version}~develop{date}+{build}+{commit}'.format(
version = curr_version,
})
elif re.match(EXPERIMENTAL_BRANCHES_RE, ENV['GIT_BRANCH']):
+ if not re.match('^dev_.*$', ENV['JOB_NAME']):
+ logger.error('Use the appropriate job to build for branch "%s"!' %(
+ ENV['GIT_BRANCH']
+ ))
+ exit_error()
new_dist = 'dev-' + ENV['GIT_BRANCH'].replace("/","-")
new_version = '{version}~experimental{date}+{build}+{commit}'.format(
version = curr_version,