Ho colpito questo per più di un giorno ora, mi sta facendo impazzire!Hudson non preleverà da Git
- ho Git installato su un PC Win7, e selezionata l'opzione PuTTYgen su installazione.
- Ho generato chiavi ssh utilizzando PuttyGen; Ho aggiunto la chiave ssh al mio account Git e ho collegato la chiave privata in Pageant.
- Ho impostato GIT_SSH per puntare al mio stucco plink.exe.
- Ho usato Putty per connettere lo al codetet & git per farli accettare come ospiti conosciuti.
posso clonare dalla console, ma Hudson fallisce:
Fetching upstream changes from [email protected]:xxx/xxx.git
[workspace] $ "C:\Program Files\Git\bin\git.exe" fetch -t [email protected]:xxx/xxx.git +refs/heads/*:refs/remotes/origin/*
ERROR: Problem fetching from origin/origin - could be unavailable. Continuing anyway
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
...
Se faccio funzionare l'ordine esatto git in una console, funziona benissimo:
"C:\Program Files\Git\bin\git.exe" fetch -t [email protected]:xxx/xxx.git +refs/heads/*:refs/remotes/origin/*
ho provato a fare funzionare plink per connettersi direttamente a GitHub:
plink -agent -v [email protected]
Looking up host "github.com"
...
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "git".
...
Authenticating with public key "rsa-key-20110121" from agent
...
Hi xxx! You've successfully authenticated, but GitHub does not provide
shell access.
Ho quindi provato collegamento a codaset:
plink -agent -v [email protected]
m
Looking up host "codaset.com"
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "git".
...
Authenticating with public key "rsa-key-20110121" from agent
...
Opened channel for session
Server refused to allocate pty
Started a shell/command
Error: Command is required.
...
Server sent command exit status 255
Disconnected: All channels closed
Quindi, una risposta leggermente diversa da codetet che da git. Tuttavia, penso che questa potrebbe essere una falsa pista, poiché ottengo lo stesso errore se provo a connettermi a un progetto git standard di hudson.
ho anche creato Go Server (CruiseControl come era), e ottenere un errore simile quando si tenta di connettersi a git da qui:
ERROR: FATAL ERROR: Disconnected: No supported authentication methods available
ERROR: fatal: The remote end hung up unexpectedly
Il che mi fa pensare il problema deve trovarsi con l'autenticazione, piuttosto che i dettagli hudson ...?
Come sempre, qualsiasi aiuto è molto apprezzato!
Bello, è logico che funzioni se eseguo hudson dalla console, ma non se eseguo hudson come servizio. Saluti! – laura