Commit 79d0ed8a authored by André Anjos's avatar André Anjos

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

This reverts commit 730cf6a4.
parent 730cf6a4
......@@ -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
......
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