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

Git support in Artifactory release broken as GitAPI.java changed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: artifactory-plugin
    • Labels:
      None
    • Environment:
      Latest Jenkins 1.442 under Ubuntu.
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              yossis yossis
              Reporter:
              ravn ravn
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: