fix set_build

This commit is contained in:
Jack Robison 2018-10-22 20:58:52 -04:00
parent ba57af5502
commit 01baa193d5
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -19,8 +19,9 @@ def get_build():
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()):
return 'rc'
else:
elif re.match('v\d+\.\d+\.\d+$', tag.decode()):
return 'release'
return 'qa'
except subprocess.CalledProcessError:
# if the build doesn't have a tag
return 'qa'