Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72834

Sharelib Fail after Upgrade Git Plugin to 5.2.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • workflow-cps-plugin
    • 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)

            Unassigned Unassigned
            hudson hudson hudson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: