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

GIT for Windows Directory with & Issue

    Details

    • Similar Issues:

      Description

      When using multiple labels with this plugin like "Win7&&Prod", git fails to close the repository because of the directory name.  However, if you perform the same command line GIT command and surround the path in double quotes it works fine.  It seems that without the quotes, it thinks the path should  end at "Win7" rather than the entire name "Win7&&Prod"

       

      Sample from Console log:

       

       

      > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > C:\Program Files\Git\bin\git.exe config remote.origin.url http://pdwtfsws01:8080/tfs/EUCCollection/EUC/_git/CSSWebSiteValidation # timeout=10
      Fetching upstream changes from http://pdwtfsws01:8080/tfs/EUCCollection/EUC/_git/CSSWebSiteValidation
       > C:\Program Files\Git\bin\git.exe --version # timeout=10
      using GIT_ASKPASS to set credentials Account used to simulate user level access.
       > C:\Program Files\Git\bin\git.exe fetch --tags --progress http://pdwtfsws01:8080/tfs/EUCCollection/EUC/_git/CSSWebSiteValidation +refs/heads/*:refs/remotes/origin/*
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from http://pdwtfsws01:8080/tfs/EUCCollection/EUC/_git/CSSWebSiteValidation
       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862)
       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
       at hudson.scm.SCM.checkout(SCM.java:495)
       at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
       at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
       at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
       at hudson.model.Run.execute(Run.java:1724)
       at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress http://pdwtfsws01:8080/tfs/EUCCollection/EUC/_git/CSSWebSiteValidation +refs/heads/*:refs/remotes/origin/*" returned status code 128:
      stdout: 
      stderr: 'c:\jenkins\workspace\UtilityJobs\MultiConfigJob\MultiCss\Retail' is not recognized as an internal or external command,
      operable program or batch file.
      error: unable to read askpass response from 'c:\jenkins\workspace\UtilityJobs\MultiConfigJob\MultiCss\Retail&&Win7@tmp\pass6376712448504212109.bat'
      fatal: could not read Username for 'http://pdwtfsws01:8080': terminal prompts disabled
      
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1715)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
       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:207)
       at hudson.remoting.UserRequest.perform(UserRequest.java:53)
       at hudson.remoting.Request$2.run(Request.java:358)
       at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
       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:98)
       at java.lang.Thread.run(Unknown Source)
       Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 10.27.243.185/10.27.243.185:22124
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
       at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
       at hudson.remoting.Channel.call(Channel.java:908)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
       at sun.reflect.GeneratedMethodAccessor559.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
       at com.sun.proxy.$Proxy64.execute(Unknown Source)
       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:860)
       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)
       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
       at hudson.scm.SCM.checkout(SCM.java:495)
       at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
       at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
       at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
       at hudson.model.Run.execute(Run.java:1724)
       at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      ERROR: Error fetching remote repo 'origin'
      Performing Post build task...

       

       

        Attachments

          Activity

          Hide
          yorammi Yoram Michaeli added a comment -

          Closing issue as part of tikal-multijob-plugin issues cleanup.
          If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

          Show
          yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            People

            • Assignee:
              Unassigned
              Reporter:
              devans David Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: