Skip to content

Commit

Permalink
Fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Sep 11, 2022
1 parent 61781bc commit 1b0b5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/gitlab_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ def artifact_url(self, ref, job, file):
return self.artifacts_url(ref) + "/%s?job=%s" % (file, job.replace(":", "%3A"))

def artifacts_url(self, ref):
return self.api_url + "/jobs/artifacts/%s/raw" % ref
return self.api_url + "/jobs/artifacts/%s/raw" % ref.replace(".", "%2E")

@classmethod
def from_env(cls):
project_url = environ("CI_PROJECT_URL")
project_id = environ("CI_PROJECT_ID")
api_key = environ("GITLAB_ACCESS_TOKEN", "You must specify an access token. See https://gitlab.com/profile/personal_access_tokens")
api_key = environ("GITLAB_ACCESS_TOKEN", "You must specify an access token. See https://gitlab.com/-/profile/personal_access_tokens")
return cls(project_url, project_id, api_key)

@classmethod
Expand Down

0 comments on commit 1b0b5b1

Please sign in to comment.