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

Convert the changeLog to a String to avoid ClassCastException

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • git-plugin
    • None
    • Platform: All, OS: All

      Currently the plugin fails to complete a run due to a ClassCastException in
      GitSCM.java, this patch fixes that bug.

      java.lang.ClassCastException: java.lang.StringBuilder cannot be cast to
      java.lang.String
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:593)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1005)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:456)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:379)
      at hudson.model.Run.run(Run.java:1198)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)

            pcc pcc
            pcc pcc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: