fix: download the build artifact instead of the repository default zip

Related to #195
This commit is contained in:
Swann 2021-06-15 14:51:37 +02:00
parent 836fdd02b8
commit 7790a16034
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -1688,10 +1688,7 @@ class GitlabEngine(object):
# Could clash with tag names and if it does, it will
# download TAG zip instead of branch zip to get
# direct path, would need.
return "{}{}{}".format(
self.form_repo_url(updater),
"/repository/archive.zip?sha=",
branch)
return f"https://gitlab.com/slumber/multi-user/-/jobs/artifacts/{branch}/download?job=build"
def get_zip_url(self, sha, updater):
return "{base}/repository/archive.zip?sha={sha}".format(