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

Pipeline dies with `java.lang.String cannot be cast to hudson.model.Fingerprint`

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      All builds that I checked fail with following stack :

      java.lang.ClassCastException: java.lang.String cannot be cast to hudson.model.Fingerprint
       at hudson.model.Fingerprint.load(Fingerprint.java:1369)
       at hudson.model.Fingerprint.load(Fingerprint.java:1357)
       at hudson.model.FingerprintMap.load(FingerprintMap.java:97)
       at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
       at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
       at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
       at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
       at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
       at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
       at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:64)
       at com.cloudbees.plugins.credentials.CredentialsProvider.getOrCreateFingerprintOf(CredentialsProvider.java:1403)
       at com.cloudbees.plugins.credentials.CredentialsProvider.trackAll(CredentialsProvider.java:1457)
       at com.cloudbees.plugins.credentials.CredentialsProvider.track(CredentialsProvider.java:1421)
       at hudson.plugins.git.GitSCM.createClient(GitSCM.java:818)
       at hudson.plugins.git.GitSCM.createClient(GitSCM.java:786)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1154)
       at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
       at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
       at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:298)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
       Finished: FAILURE

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            test/src/test/java/hudson/model/FingerprintTest.java
            http://jenkins-ci.org/commit/jenkins/cc9425039aa2f8f46153e404c226cf98b0e65659
            Log:
            JENKINS-51179 - Reproduce the issue in Test

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: test/src/test/java/hudson/model/FingerprintTest.java http://jenkins-ci.org/commit/jenkins/cc9425039aa2f8f46153e404c226cf98b0e65659 Log: JENKINS-51179 - Reproduce the issue in Test
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/model/Fingerprint.java
            http://jenkins-ci.org/commit/jenkins/922617509eccbcb89ad3bb8b5f6e33bd5a8182c0
            Log:
            JENKINS-51179 - Check type of the loaded object when loading fingerprints

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/model/Fingerprint.java http://jenkins-ci.org/commit/jenkins/922617509eccbcb89ad3bb8b5f6e33bd5a8182c0 Log: JENKINS-51179 - Check type of the loaded object when loading fingerprints
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/model/Fingerprint.java
            test/src/test/java/hudson/model/FingerprintTest.java
            http://jenkins-ci.org/commit/jenkins/9e64bcdcb4a2cf12d59dfa334e09ffb448d361e9
            Log:
            Merge pull request #3439 from oleg-nenashev/bug/JENKINS-51179

            JENKINS-51179 - Provide diagnostics when loading corrupted fingerprint files

            Compare: https://github.com/jenkinsci/jenkins/compare/cdda62c35a86...9e64bcdcb4a2
            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/model/Fingerprint.java test/src/test/java/hudson/model/FingerprintTest.java http://jenkins-ci.org/commit/jenkins/9e64bcdcb4a2cf12d59dfa334e09ffb448d361e9 Log: Merge pull request #3439 from oleg-nenashev/bug/ JENKINS-51179 JENKINS-51179 - Provide diagnostics when loading corrupted fingerprint files Compare: https://github.com/jenkinsci/jenkins/compare/cdda62c35a86...9e64bcdcb4a2 * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Fixed in 2.123

            Show
            oleg_nenashev Oleg Nenashev added a comment - Fixed in 2.123
            Hide
            jozue_noon Witold Konior added a comment -

            Thank you!

            Show
            jozue_noon Witold Konior added a comment - Thank you!

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                jozue_noon Witold Konior
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: