Please make sure you have the correct access rights and the repository exists.
So I deleted the credentials in jenkins, created a new gitlab access token api key for a user called jenkins who had developer rights for the gitlab project and created a new credential in Jenkins. Error now gone.
But when I run the job, I get the error above in the console output.
Checking out Revision 78e2f92f3cc5dc9a43c42b0e76402d6d724be8e4 (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f 78e2f92f3cc5dc9a43c42b0e76402d6d724be8e4
git rev-list 3abff1d1f38ce409f468f01a337bc3a7c3e43cd3 # timeout=10
ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.IllegalStateException: No credentials found for credentialsId: 1909e700-c4e3-4cac-a2ff-987b8990bb6c
at com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder.getApiToken(GitLabClientBuilder.java:133)
I also tried creating a new job and get the following error.
javax.servlet.ServletException: java.lang.Error: org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"}
So generally very confused about what is going on. In previous versions of jenkins and the gitlab plugin the Jenkins user can access Gitlab. Now the build is obviously getting through to git but not gitlab. Can someone please help?
Regards,
John
There may be an additional location where you need to configure the gitlab api token. Look at the system configuration page to see if you can find an api token setting.
If that search doesn't find it, then you might try a recursive search through your Jenkins home directory looking for that credentials I'd. When you find the file, it's location in the directory structure will suggest where to look in the UI.
Mark Waite
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/47af03a9-9aa5-44a7-bb25-f386abe62ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Mark,