]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
we must accept ":" in version numbers!
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 6 Jul 2012 16:00:56 +0000 (18:00 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 6 Jul 2012 16:00:56 +0000 (18:00 +0200)
debian_build.py

index 071f1e6bcd5787fdb612a642a92f22b0a8cf5282..788d00396364c7a5fc3ea9816b683255572cae7e 100755 (executable)
@@ -524,11 +524,9 @@ if __name__ == '__main__':
 
     # 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)