java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V

Jenkins JIRA | ravn | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Artifactory Release (2.0.4) works with Git plugin 1.1.12, but fails with Git plugin 1.1.14. [RELEASE] Release build triggered FATAL: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158) at org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52) at org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74) at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) According to https://github.com/jenkinsci/git-plugin/compare/git-1.1.12...git-1.1.14#diff-2 GitAPI.java method called was changed in 1.1.13, adding a parameter.

    Jenkins JIRA | 5 years ago | ravn
    java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V
  2. 0

    Artifactory Release (2.0.4) works with Git plugin 1.1.12, but fails with Git plugin 1.1.14. [RELEASE] Release build triggered FATAL: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158) at org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188) at org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52) at org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74) at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) According to https://github.com/jenkinsci/git-plugin/compare/git-1.1.12...git-1.1.14#diff-2 GitAPI.java method called was changed in 1.1.13, adding a parameter.

    Jenkins JIRA | 5 years ago | ravn
    java.lang.NoSuchMethodError: hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      hudson.plugins.git.GitAPI.<init>(Ljava/lang/String;Lhudson/FilePath;Lhudson/model/TaskListener;Lhudson/EnvVars;)V

      at org.jfrog.hudson.release.scm.git.GitManager.createGitAPI()
    2. org.jfrog.hudson
      GitManager$CurrentCommitCallable.invoke
      1. org.jfrog.hudson.release.scm.git.GitManager.createGitAPI(GitManager.java:158)
      2. org.jfrog.hudson.release.scm.git.GitManager.access$100(GitManager.java:42)
      3. org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:188)
      4. org.jfrog.hudson.release.scm.git.GitManager$CurrentCommitCallable.invoke(GitManager.java:168)
      4 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:783)
      2. hudson.FilePath.act(FilePath.java:765)
      2 frames
    4. org.jfrog.hudson
      MavenReleaseWrapper.setUp
      1. org.jfrog.hudson.release.scm.git.GitManager.getCurrentCommitHash(GitManager.java:52)
      2. org.jfrog.hudson.release.scm.git.GitCoordinator.prepare(GitCoordinator.java:74)
      3. org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:132)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:605)
      1 frame
    6. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462)
      2. hudson.model.Run.run(Run.java:1404)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames