fix set_build
This commit is contained in:
parent
ba57af5502
commit
01baa193d5
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue