Skip to content
Snippets Groups Projects
Commit 2c5d9b37 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[release] Fix missing path for configuration to support python-gitlab-3.x

parent d48b6a14
No related branches found
No related tags found
No related merge requests found
Pipeline #57910 failed
...@@ -67,7 +67,9 @@ def get_gitlab_instance(): ...@@ -67,7 +67,9 @@ def get_gitlab_instance():
cfgs = ["~/.python-gitlab.cfg", "/etc/python-gitlab.cfg"] cfgs = ["~/.python-gitlab.cfg", "/etc/python-gitlab.cfg"]
cfgs = [os.path.expanduser(k) for k in cfgs] cfgs = [os.path.expanduser(k) for k in cfgs]
if any([os.path.exists(k) for k in cfgs]): if any([os.path.exists(k) for k in cfgs]):
gl = gitlab.Gitlab.from_config("idiap", cfgs) gl = gitlab.Gitlab.from_config(
"idiap", [k for k in cfgs if os.path.exists(k)]
)
else: # ask the user for a token or use one from the current runner else: # ask the user for a token or use one from the current runner
server = "https://gitlab.idiap.ch" server = "https://gitlab.idiap.ch"
token = os.environ.get("CI_JOB_TOKEN") token = os.environ.get("CI_JOB_TOKEN")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment