# build was succesful, now let's tag it
if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):
- # replace ~ with _ for tags
+ # replace valid debian version chars that are invalid for git tagging
version_tag = version.replace('~','_')
- if version_tag.find(":") != -1 :
- logger_error('Illegal character ":" in version "%s" detected. Please use a different version.' % version_tag)
- exit_error()
+ version_tag = version.replace(':',',')
cmd = ['/usr/bin/git', 'tag', version_tag]
try:
subprocess.check_call(cmd)