-
Bug
-
Resolution: Not A Defect
-
Blocker
-
None
After Upgrading Git Plugin to 5.2.1, in the global configuration, section "Global Pipeline Libraries", can't show the git commit id.
Build error as below:
Loading library shared-library@master
java.lang.NoSuchMethodError: 'java.util.List com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentialsInItem(java.lang.Class, hudson.model.Item, org.springframework.security.core.Authentication, java.util.List)'
at jenkins.plugins.git.AbstractGitSCMSource.getCredentials(AbstractGitSCMSource.java:1291)
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:859)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:635)
at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$retrieve$0(SCMSourceRetriever.java:75)
at org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever.retrySCMOperation(SCMBasedRetriever.java:222)
at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:75)
at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:264)
at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:151)