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

Command line git fails to fetch due to incorrect directory ownership

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • git-client-plugin
    • None
    • Jenkins 2.375.2, Windows Server 2016, git Client Plugin 4.10, 3.11 works fine.

      After updated our Jenkins environemnt to 2.375.2 and updating all plugins our builds started failing with the below log.  

      Trying to run the commands in CMD showed that for the git.exe rev-parse --resolve command it would give the error "fatal: not a gitdir 'C:\Program", making me think that it did not like the space in the folder path.  

      I then revered the git client plugin from 4.1 back to 3.11 and this resolve my builds.  I have not tried the 4.00 version as of this time.  
      git.exe rev-parse --resolve-git-dir C:\Program Files (x86)\Jenkins\workspace\HPRO QA\.git # timeout=10
      Fetching changes from the remote Git repository
      > git.exe config remote.origin.url git@bitbucket.org:REMOVED.git # timeout=10
      ERROR: Error fetching remote repo 'origin'

      Caused by: hudson.plugins.git.GitException: Command "git.exe config remote.origin.url git@bitbucket.org:REMOVED.git" returned status code 128:
      stdout:
      stderr: fatal: not in a git directory

            Unassigned Unassigned
            ccastilaw Cody
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: