jenkinsci / jenkinsci/git-client-plugin

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

Open
#1,618 4 comments 0 reactions 0 assignees View on GitHub
component:git-client-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
152
Forks
402
Avg merge
6h 47m
Merged PRs (30d)
4

Description

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

---
Originally reported by vnenashev, imported from: Can't clone git repository on windows agents if jenkins folder contains cyrillic symbols


  • status: Open
  • priority: Critical
  • component(s): git-client-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251211-071809

Raw content of original issue

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

environment

```
git client plugin 3.0.0

git plugin 4.2.2

jenkins 2.204.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.