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

Revert "[release] Try a different method for authenticating using CI_JOB_TOKEN"

This reverts commit 730cf6a4.
parent 730cf6a4
No related branches found
No related tags found
1 merge request!14Base build
......@@ -70,11 +70,7 @@ 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)
else:
username = 'gitlab-ci-token'
gl = gitlab.Gitlab(server, email='gitlab-ci-token', password=token)
gl.auth()
gl = gitlab.Gitlab(server, private_token=token, api_version=4)
return gl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment