[JENKINS-30927] 'C:\Program' is not recognized as an internal or external command

Aperta
#1,495 25 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
Da chiarire
Stato di attività
Ferma
Stack tecnologico
git, java
Ambito
devtools

Direzione di ricerca

Riproduci il problema utilizzando la configurazione Git di Jenkins, Git client plugin 1.19.0, Git 2.6.1, nonché il percorso dell’eseguibile Windows e l’URL SSH indicati. Traccia il modo in cui git-client-plugin invoca quel comando, quindi verifica che la connessione al repository riesca senza l’errore di comando “C:\Program”.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

I tried to setup a test project, using a git project connecting through ssh.
After selecting the ssh credential and adding the git URL (ssh://git@​bitbucket.org/CLIENT/test.git) I get the following message:
---------------
Failed to connect to repository : Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true ls-remote -h ssh://git@​bitbucket.org/CLIENT/test.git HEAD" returned status code 128:
stdout:
stderr: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
--------------

My setup:
Jenkins: 1.633
GIT client plugin: 1.19.0
GIT plugin: 2.4.0

Jenkins Git Configuration is set to: C:/Progra~1/Git/bin/git.exe
Git 2.6.1 from https://git-scm.com/downloads.


Originally reported by flaviodonze, imported from: 'C:\Program' is not recognized as an internal or external command
  • status: Open
  • priority: Critical
  • component(s): git-client-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 6
  • imported: 20251211-071809
Raw content of original issue

I tried to setup a test project, using a git project connecting through ssh. After selecting the ssh credential and adding the git URL (ssh://[email protected]/CLIENT/test.git) I get the following message: --------------- Failed to connect to repository : Command "C:/Progra~1/Git/bin/git.exe -c core.askpass=true ls-remote -h ssh://[email protected]/CLIENT/test.git HEAD" returned status code 128: stdout: stderr: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. --------------

My setup: Jenkins: 1.633 GIT client plugin: 1.19.0 GIT plugin: 2.4.0

Jenkins Git Configuration is set to: C:/Progra~1/Git/bin/git.exe Git 2.6.1 from https://git-scm.com/downloads.

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.