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

git clean fails with submodules (failed to fetch)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • windows node
      git plugin version 2.2.2
      git client plugin version 1.9.1

      Hi,

      i try to build the c++ library boost on a windows node. But as soon as i add "clean after checkout" or "clean before checkout" the job fails with:

      > git clean -fdx
      FATAL: Failed to fetch from https://github.com/boostorg/boost.git
      hudson.plugins.git.GitException: Failed to fetch from https://github.com/boostorg/boost.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
      at hudson.model.Run.execute(Run.java:1732)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:234)
      Caused by: hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1:

          [JENKINS-23694] git clean fails with submodules (failed to fetch)

          Daniel Neus created issue -
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-7376 [ JENKINS-7376 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-13910 [ JENKINS-13910 ]
          Mark Waite made changes -
          Description Original:
          Hi,

          i try to build the c++ library boost on a windows node. But as soon as i add "clean after checkout" or "clean before checkout" the job fails with:

          > git clean -fdx
          FATAL: Failed to fetch from https://github.com/boostorg/boost.git
          hudson.plugins.git.GitException: Failed to fetch from https://github.com/boostorg/boost.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
          at hudson.model.Run.execute(Run.java:1732)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:234)
          Caused by: hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1:
          New: Hi,

          i try to build the c++ library boost on a windows node. But as soon as i add "clean after checkout" or "clean before checkout" the job fails with:

          > git clean -fdx
          FATAL: Failed to fetch from https://github.com/boostorg/boost.git
          hudson.plugins.git.GitException: Failed to fetch from https://github.com/boostorg/boost.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
          at hudson.model.Run.execute(Run.java:1732)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:234)
          Caused by: hudson.plugins.git.GitException: Command "git clean -fdx" returned status code 1:
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Mark Waite made changes -
          Summary Original: git clean does not work (failed to fetch) New: git clean fails with submodules (failed to fetch)
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156479 ] New: JNJira + In-Review [ 179294 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

            Unassigned Unassigned
            neusdan Daniel Neus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: