Commit 730cf6a4 authored by André Anjos's avatar André Anjos

[release] Try a different method for authenticating using CI_JOB_TOKEN

parent 9b39d55e
Pipeline #26885 failed with stage
in 5 minutes and 3 seconds
......@@ -70,7 +70,11 @@ def get_gitlab_instance():
logger.debug('Did not find any of %s nor CI_JOB_TOKEN is defined. ' \
'Asking for user token on the command line...', '|'.join(cfgs))
token = input("Your %s (private) token: " % server)
gl = gitlab.Gitlab(server, private_token=token, api_version=4)
gl = gitlab.Gitlab(server, private_token=token, api_version=4)
else:
username = 'gitlab-ci-token'
gl = gitlab.Gitlab(server, email='gitlab-ci-token', password=token)
gl.auth()
return gl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment