hudson.plugins.git.GitException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This all has worked fine previously, but latest updates for some reason there have been these kind of issues, as described below. 1. Start Jenkins service 2. Trigger ex. 20 builds 3. Wait and see if one of them fails to build 4. See if the reason is Jenkins issue, not msbuild/unit test 5. Rest of builds that starts after failed one, will fail also with same output as below 6. Wipe workspaces manually 7. Builds will most likely start working again Triggered by Gerrit: http://xxx002:8080/4195 [EnvInject] - Loading node environment variables. Building on master in workspace r:\jenkins-workspaces Fetching changes from the remote Git repository Fetching upstream changes from ssh://hudson@xxxx002:29418/xxx.git Checking out Revision 45d62ed078309607e0b6a24b842ff33c93f3b740 (feature/WI3076) Cleaning workspace Resetting working tree FATAL: Command "git clean -fdx" returned status code 1: stdout: Removing Source/xxx/zzz/Areas Removing Source/xxx/zzz/Content Removing Source/xxx/zzz/Scripts Removing Source/xxx/zzz/Views stderr: warning: failed to remove Source/xxx/zzz/Areas warning: failed to remove Source/xxx/zzz/Content warning: failed to remove Source/xxx/zzz/Scripts warning: failed to remove Source/xxx/zzz/Views hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1: stdout: Removing Source/xxx/zzz/Areas Removing Source/xxx/zzz/Content Removing Source/xxx/zzz/Scripts Removing Source/xxx/zzz/Views stderr: warning: failed to remove Source/xxx/zzz/Areas warning: failed to remove Source/xxx/zzz/Content warning: failed to remove Source/xxx/zzz/Scripts warning: failed to remove Source/xxx/zzz/Views at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1086) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1063) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:900) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:910) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:367) at hudson.plugins.git.GitAPI.clean(GitAPI.java:251) at hudson.plugins.git.extensions.impl.CleanCheckout.onCheckoutCompleted(CleanCheckout.java:28) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890) at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)
    via by Hannu Piki,
  • This all has worked fine previously, but latest updates for some reason there have been these kind of issues, as described below. 1. Start Jenkins service 2. Trigger ex. 20 builds 3. Wait and see if one of them fails to build 4. See if the reason is Jenkins issue, not msbuild/unit test 5. Rest of builds that starts after failed one, will fail also with same output as below 6. Wipe workspaces manually 7. Builds will most likely start working again Triggered by Gerrit: http://xxx002:8080/4195 [EnvInject] - Loading node environment variables. Building on master in workspace r:\jenkins-workspaces Fetching changes from the remote Git repository Fetching upstream changes from ssh://hudson@xxxx002:29418/xxx.git Checking out Revision 45d62ed078309607e0b6a24b842ff33c93f3b740 (feature/WI3076) Cleaning workspace Resetting working tree FATAL: Command "git clean -fdx" returned status code 1: stdout: Removing Source/xxx/zzz/Areas Removing Source/xxx/zzz/Content Removing Source/xxx/zzz/Scripts Removing Source/xxx/zzz/Views stderr: warning: failed to remove Source/xxx/zzz/Areas warning: failed to remove Source/xxx/zzz/Content warning: failed to remove Source/xxx/zzz/Scripts warning: failed to remove Source/xxx/zzz/Views hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1: stdout: Removing Source/xxx/zzz/Areas Removing Source/xxx/zzz/Content Removing Source/xxx/zzz/Scripts Removing Source/xxx/zzz/Views stderr: warning: failed to remove Source/xxx/zzz/Areas warning: failed to remove Source/xxx/zzz/Content warning: failed to remove Source/xxx/zzz/Scripts warning: failed to remove Source/xxx/zzz/Views at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1086) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1063) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:900) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:910) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:367) at hudson.plugins.git.GitAPI.clean(GitAPI.java:251) at hudson.plugins.git.extensions.impl.CleanCheckout.onCheckoutCompleted(CleanCheckout.java:28) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890) at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)
    via by Hannu Piki,
  • When running a job on a Windows node with 'Clean before checkout' action in the Git step, I'm getting the following error: {code:java} GitHub pull request #6 of commit ..., no merge conflicts. Setting status of ... to PENDING with url http://.../job/build-web-ui/149/ and message: 'Build started sha1 is merged.' Building remotely on Win Slave (windows) in workspace C:\Jenkins\workspace\build-web-ui > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/.../....git # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://github.com/.../....git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1616) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1612) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1254) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:621) at hudson.plugins.git.GitAPI.clean(GitAPI.java:311) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:69) at java.lang.Thread.run(Unknown Source) at ......remote call to Win Slave(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:778) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:250) at com.sun.proxy.$Proxy53.clean(Unknown Source) at org.jenkinsci.plugins.gitclient.RemoteGitImpl.clean(RemoteGitImpl.java:444) at hudson.plugins.git.extensions.impl.CleanBeforeCheckout.decorateFetchCommand(CleanBeforeCheckout.java:32) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:759) ... 11 more ERROR: null Setting status of dabdaaf6268d12217ca805983b880f3bba2e17d2 to FAILURE with url http://.../job/build-web-ui/149/ and message: 'Build finished. No test results found.' Finished: FAILURE {code} The path is shorter than 255 characters, and no file is in use within the directory. Running the 'git clean -fdx' command manually from cmd works properly. Edit: The errorlevel on "git clean -fdx" is indeed 1, not sure why... The command works though
    via by Tal Auslander,
  • When running a job on a Windows node with 'Clean before checkout' action in the Git step, I'm getting the following error: {code:java} GitHub pull request #6 of commit ..., no merge conflicts. Setting status of ... to PENDING with url http://.../job/build-web-ui/149/ and message: 'Build started sha1 is merged.' Building remotely on Win Slave (windows) in workspace C:\Jenkins\workspace\build-web-ui > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/.../....git # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://github.com/.../....git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1616) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1612) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1254) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:621) at hudson.plugins.git.GitAPI.clean(GitAPI.java:311) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:69) at java.lang.Thread.run(Unknown Source) at ......remote call to Win Slave(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:778) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:250) at com.sun.proxy.$Proxy53.clean(Unknown Source) at org.jenkinsci.plugins.gitclient.RemoteGitImpl.clean(RemoteGitImpl.java:444) at hudson.plugins.git.extensions.impl.CleanBeforeCheckout.decorateFetchCommand(CleanBeforeCheckout.java:32) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:759) ... 11 more ERROR: null Setting status of dabdaaf6268d12217ca805983b880f3bba2e17d2 to FAILURE with url http://.../job/build-web-ui/149/ and message: 'Build finished. No test results found.' Finished: FAILURE {code} The path is shorter than 255 characters, and no file is in use within the directory. Running the 'git clean -fdx' command manually from cmd works properly. Edit: The errorlevel on "git clean -fdx" is indeed 1, not sure why... The command works though
    via by Tal Auslander,
  • FlightGear - Flight Simulator / Mailing Lists
    via by Unknown author,
  • Used to work on git 2.2.1. After upgrading to 2.2.7, it cannot work on Linux slave. But can work on windows slave. Errors from polling log: Started on Oct 21, 2014 10:31:00 PM Polling SCM changes on VM-Platuypus-Build-10.110.61.85-PDK Using strategy: Default [poll] Last Built Revision: Revision cd2cd96d9ff5f3ca90ead6178f299a873978a44c (origin/master) > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repositories > git config remote.origin.url ssh://bmcdiags@10.110.61.117:30000/platypus.git # timeout=10 Fetching upstream changes from ssh://bmcdiags@10.110.61.117:30000/platypus.git > git --version # timeout=10 > git fetch --tags ssh://bmcdiags@10.110.61.117:30000/platypus.git +refs/heads/*:refs/remotes/origin/* # timeout=20 FATAL: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git hudson.util.IOException2: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:475) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:357) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1449) at hudson.model.AbstractProject._poll(AbstractProject.java:1420) at hudson.model.AbstractProject.poll(AbstractProject.java:1331) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:477) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:506) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:647) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:554) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:473) ... 13 more Caused by: hudson.plugins.git.GitException: Command "git fetch --tags ssh://bmcdiags@10.110.61.117:30000/platypus.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: error: cannot run ssh: No such file or directory fatal: unable to fork at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1435) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1223) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:85) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:280) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Done. Took 0.15 sec No changes
    via by sharon xia,
    • hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1: stdout: Removing Source/xxx/zzz/Areas Removing Source/xxx/zzz/Content Removing Source/xxx/zzz/Scripts Removing Source/xxx/zzz/Views stderr: warning: failed to remove Source/xxx/zzz/Areas warning: failed to remove Source/xxx/zzz/Content warning: failed to remove Source/xxx/zzz/Scripts warning: failed to remove Source/xxx/zzz/Views at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1086) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1063) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:900) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:910) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:367) at hudson.plugins.git.GitAPI.clean(GitAPI.java:251) at hudson.plugins.git.extensions.impl.CleanCheckout.onCheckoutCompleted(CleanCheckout.java:28) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890) at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates