This commit is contained in:
Derek DeJonghe
2020-06-16 15:38:05 -04:00
parent 20cf9b2b01
commit 022d577274
2 changed files with 2 additions and 2 deletions

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 is 'npm' or 'docker':
if version_format in ('npm','docker'i):
return "{}-{}.{}".format(next_version,branch.replace('/','-'),build)
if version_format == 'maven':
qualifier = 'SNAPSHOT' if build == 0 else build