-
Bug
-
Resolution: Won't Fix
-
Major
Hi!
We have upgraded the git plugins and are facing an issue.
Git-client-plugin is not compatible with Java 1.5 at the moment, since TimeUnit.MINUTES is available in Java 1.6+ only.
Could you fix the plugin to be still compatible with Java 1.5?
Affected source file: CliGitAPIImpl.java
Error message, including stack trace:
Fetching upstream changes from /directory/of/the/git/repo ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Error performing git command at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1108) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:985) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:69) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:218) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:350) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NoSuchFieldError: MINUTES at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1095) ... 15 more ERROR: null
Git upgrade was necessary for an other issue. "From" versions worked for us.
Jenkins GIT client plugin 1.1.1 -> 1.6.0 Jenkins GIT plugin 1.2.0 -> 2.0 Git server plugin 1.1 -> 1.2
Thanks!