Skip to content
Snippets Groups Projects
Unverified Commit 4dcbaa58 authored by Nico's avatar Nico
Browse files

fix version number

parent c46ab6be
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,9 @@ def find_version_from_archive(archive_file_list): ...@@ -31,8 +31,9 @@ def find_version_from_archive(archive_file_list):
version_regex = re.compile(r'gluon-ffs-(((experimental|[0-9]+\.[0-9])+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+-)') version_regex = re.compile(r'gluon-ffs-(((experimental|[0-9]+\.[0-9])+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+-)')
version_matches = version_regex.match(filename) version_matches = version_regex.match(filename)
if version_matches: if version_matches:
logging.debug("Found version number {}".format(version_matches.group(1))) version = version_matches.group(1)
return version_matches.group(2) logging.debug("Found version number {}".format(version))
return version
raise ValueError("Could not determine version from ZIP file") raise ValueError("Could not determine version from ZIP file")
def extract_zip(artifact_zipfile): def extract_zip(artifact_zipfile):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment