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

NoSuchMethodError after upgrading to gerrit-triger 2.3.1

XMLWordPrintable

      we upgraded gerrit-trigger to 2.3.1 and now we hit the exception given below when a build job is triggered.

      I tried to debug this but I failed to succesfully build the gerrit-trigger plugin in eclipse.
      Is the developer setup described anywhere ?

      https://hudson.eclipse.org/sandbox/job/jgit.gerrit/894/console

      Fetching upstream changes from git://egit.eclipse.org/jgit.git
      hudson.util.IOException2: remote file operation failed: /opt/users/hudsonbuild/workspace/jgit.gerrit at hudson.remoting.Channel@7c9454b3:sandbox-slave1
      at hudson.FilePath.act(FilePath.java:754)
      at hudson.FilePath.act(FilePath.java:740)
      at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:754)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:540)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:508)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
      at hudson.model.Run.run(Run.java:1367)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)
      Caused by: java.io.IOException: Remote call on sandbox-slave1 failed
      at hudson.remoting.Channel.call(Channel.java:659)
      at hudson.FilePath.act(FilePath.java:747)
      ... 10 more
      Caused by: java.lang.NoSuchMethodError: hudson.plugins.git.IGitAPI.revParse(Ljava/lang/String;)Lorg/eclipse/jgit/lib/ObjectId;
      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getCandidateRevisions(GerritTriggerBuildChooser.java:61)
      at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:861)
      at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:754)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1960)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:283)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      [DRY] Skipping publisher since build result is FAILURE
      [FINDBUGS] Skipping publisher since build result is FAILURE
      Recording test results
      [DEBUG] Skipping watched dependency update for build: jgit.gerrit #894 due to result: FAILURE
      Finished: FAILURE

            rsandell rsandell
            msohn Matthias Sohn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: