java.lang.ClassCastException: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Jenkins JIRA by rere rere, 1 year ago
org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI
via Jenkins JIRA by rere rere, 1 year ago
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.FilePath.act(FilePath.java:865)
at hudson.FilePath.act(FilePath.java:838)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1342)
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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.