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

java.lang.ClassCastException when triggering build

    XMLWordPrintable

Details

    Description

      A build triggered with the gerrit-trigger plugin failed with the following output:

      FATAL: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI
      java.lang.ClassCastException: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI
      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:107)
      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79)
      at hudson.plugins.git.util.BuildChooser.prevBuildForChangelog(BuildChooser.java:114)
      at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1286)
      at hudson.plugins.git.GitSCM.access$1500(GitSCM.java:57)
      at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1234)
      at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1192)
      at hudson.FilePath.act(FilePath.java:865)
      at hudson.FilePath.act(FilePath.java:838)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1342)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
      at hudson.model.Run.execute(Run.java:1568)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            jyrkiput jyrkiput
            rere_16 rere rere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: