Projects running fine but source codes all have a failure credentials error

  • Jenkins version 2.462.3 (controller Ubuntu, nodes: 1-Ubuntu, 2 Win 2022)
  • GitLab v17.5.1-ee

All my projects are running fine but in the Source Code Management > Git have an error “Failed to connect to repository : Failed to setup credentials”

It’s not a project access token because all the cloning is fine.

I thought it was the Manage Jenkins > System > Gitlab > GitLab Connection because the test failed so I got that cleared up but all my projects still show that error message.

I want to upgrade my Jenkins and then next week upgrade to Ubuntu 22 or 24 but want to fix this little issue first.

Any ideas on where else to look are welcome!


The message “Failed to setup credentials” indicates an unexpected failure in the launchCommandWithCredentials() method of the Jenkins git client plugin’s implementation that calls command line git. The details of the exception may be available in the log of the Jenkins controller through the logger associated with CliGitAPIImpl. Something reported an IOException while trying to configure credentials for command line git.