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

Jenkins JIRA | Hannu Piki | 3 years ago
  1. 0

    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)

    Jenkins JIRA | 3 years ago | Hannu Piki
    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
  2. 0

    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)

    Jenkins JIRA | 3 years ago | Hannu Piki
    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
  3. 0

    [JIRA] [git-plugin] (JENKINS-31456) Git 'Clean before checkout' step fails on Windows nodes

    Google Groups | 1 year ago | tal+jenkins-ci.org@cloudshare.com (JIRA)
    hudson.plugins.git.GitException: Failed to fetch from https:<span class="code-comment" style="color: #808080">//github.com/talcloudshare/cloudshare.git </span> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Jenkins JIRA | 1 year ago | Tal Auslander
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/.../....git
  6. 0

    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

    Jenkins JIRA | 1 year ago | Tal Auslander
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/.../....git

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.jenkinsci.plugins
      CliGitAPIImpl.clean
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1086)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1063)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:900)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:910)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:367)
      5 frames
    3. Hudson GIT plugin
      GitAPI.clean
      1. hudson.plugins.git.GitAPI.clean(GitAPI.java:251)
      1 frame
    4. hudson.plugins.git
      CleanCheckout.onCheckoutCompleted
      1. hudson.plugins.git.extensions.impl.CleanCheckout.onCheckoutCompleted(CleanCheckout.java:28)
      1 frame
    5. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
      1 frame
    6. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1415)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
      2 frames
    7. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
      2. hudson.model.Run.execute(Run.java:1678)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:231)
      5 frames