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

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • git-client-plugin
    • None
    • git client plugin 3.0.0
      git plugin 4.2.2
      jenkins 2.204.2

      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"'

          [JENKINS-62579] Can't clone git repository on windows agents if jenkins folder contains cyrillic symbols

          Владислав Ненашев created issue -
          Mark Waite made changes -
          Remote Link New: This issue links to "PR 557 - fix proposal (Web Link)" [ 25004 ]
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Component/s Original: git-plugin [ 15543 ]
          Mark Waite made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

            Unassigned Unassigned
            vnenashev Владислав Ненашев
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: