Can't clone git repository on windows agents if jenkins folder contains cyrillic symbols

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It looks like we got problems after updating the plugins:
      git client plugin 2.8.6 -> 3.0.0
      git plugin 3.12.1 -> 4.2.2
       
      When starting the freestyle job on the Windows agent it is not possible to clone the git repository (doesn't matter ssh or https) if the folder name in Jenkins is written in Cyrillic.
       
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Command "git fetch --tags --progress – https://repo_url/repo.git +refs/heads/:refs/remotes/origin/" returned status code 128:
      stdout:
      stderr: The system cannot find the path specified.
      The system cannot find the path specified.
      error: unable to read askpass response from 'D:\jenkins_slave\workspace\Тест\windows_https_clone@tmp\jenkins-gitclient-pass0123456789123456789.bat'
      fatal: could not read Password for 'https://repo_url/repo.git': terminal prompts disabled
       
      With English folder names everything goes fine.
       
      On Linux agents, there are no problems with cloning repositories using Cyrillic names
       
      Java arguments on windows and linux agents are same: 'Dfile.encoding = "UTF-8" -Dsun.jnu.encoding = "UTF-8"'

            Assignee:
            Unassigned
            Reporter:
            Владислав Ненашев
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: