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

Aperta
#1,618 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

component:git-client-plugin imported-jira-issue priority:critical resolution:unresolved

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jenkinsci/git-client-plugin

Tutte le issue di jenkinsci/git-client-plugin

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.