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

[release] Try a different method for authenticating using CI_JOB_TOKEN

parent 9b39d55e
Branches
Tags
1 merge request!14Base build
Pipeline #26885 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment