This commit is contained in:
Derek DeJonghe 2020-06-16 15:40:16 -04:00
parent 022d577274
commit e6996e368e

View File

@ -31,7 +31,7 @@ def get_version(build=0,version_format=None,dot=False):
bump_output = p.stdout.read().decode('utf-8').rstrip()
next_version = re.search("new_version=([0-9]*.[0-9]*.[0-9]*)", bump_output).group(1)
if version_format in ('npm','docker'i):
if version_format in ('npm','docker'):
return "{}-{}.{}".format(next_version,branch.replace('/','-'),build)
if version_format == 'maven':
qualifier = 'SNAPSHOT' if build == 0 else build