Gitlab Api Token is not showing on the dropdown list

I am trying to use an API token(For the first time) to clone the code from our self-hosted GitLab server. However, I could not find the API token after I created it.

Jenkins: 2.452.2
Git plugin Version: 5.2.2
Credentials PluginVersion: 1361.v56f5ca_35d21c

It is most likely is that the credential type that you created is not the credential type that is expected in that context.

The git plugin accepts username / password credentials for HTTP and HTTPS repository access and it accepts SSH private key credentials for SSH repository access. It does not accept any other credential types. It does not accept a GitLab API token credential.

2 Likes

Thank you for clarifying the types of credentials supported by the git plugin!

Ah! This looks like the same problem with the repositories of my students. The user experience is very poor in this case, I think we should rethink the UI here.

The user selects “create credentials”, the user creates a new “token”, the dialog closes, but nothing to see, even no error message that the newly created token is not valid.

1 Like