[JENKINS-62579] Can't clone git repository on windows agents if jenkins folder contains cyrillic symbols
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- git, java
- Ambito
- operating-systems, tooling
Direzione di ricerca
Inizia dai percorsi del codice di git-client-plugin utilizzati per il cloning sugli Windows-agent e dallo script askpass temporaneo, usando come caso di riproduzione il percorso dell'area di lavoro con caratteri Cyrillic segnalato. Confronta il cloning con nomi di cartelle in Cyrillic e in inglese su Windows e mettilo a confronto con il comportamento su Linux. Il lavoro è completato quando il repository viene clonato correttamente su Windows se la cartella Jenkins contiene simboli Cyrillic.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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<br/>
git plugin 4.2.2<br/>
jenkins 2.204.2
- Lingua principale
- Java
- Stelle
- 152
- Fork
- 404
- Merge medio
- 2g 7h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jenkinsci/git-client-plugin
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
jenkinsci/git-client-plugin#1807 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
jenkinsci/git-client-plugin#1785 ·
-
Separate command line options from arguments with a double dashForse di nuovo libera @vidhumahajan l’ha presa 22 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
jenkinsci/git-client-plugin#1780 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
jenkinsci/git-client-plugin#1764 · 5 commenti · 1 reazione ·
-
Dependency DashboardAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
jenkinsci/git-client-plugin#1737 ·
Tutte le issue di jenkinsci/git-client-plugin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btraceio/jafar#228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
apache/flink-agents#1395 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
floci-io/floci#8666 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno