Started by user gerrit developer Building in workspace C:\Program Files\Jenkins\jobs\test_job3\workspace [workspace] $ cmd /c call C:\Windows\TEMP\hudson2558238243811788130.bat C:\Program Files\Jenkins\jobs\test_job3\workspace>ssh -p 29418 gerrit_developer@localhost gerrit ls-projects 1>>logfile.txt Permission denied (publickey). C:\Program Files\Jenkins\jobs\test_job3\workspace>exit 255 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE
Regards,
Mani
You need to make sure the public key is available for the user the Jenkins service is running out to allow it to login to Gerrit.
This won’t be the same as the user of the person logged into the desktop.
Note if you use the Jenkins Gerrit Trigger Plugin then it gives you the option to specify the keyfile.
Thomas
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Gerrit Server | |||
| Hostname | |||
Loading... | |||
| Frontend URL | |||
Loading... | |||
| SSH Port | |||
Loading... | |||
| Proxy | |||
Loading... | |||
| Username | |||
Loading... | |||
Loading... | |||
| SSH Keyfile | |||
Loading... | |||
| SSH Keyfile Password | |||
Loading... | |||
| Build Current Patches Only | |||
Loading... | |||
Hi Magnus, On executing this command on cmd ssh -vv -p 29418 gerrit_developer@localhost I get below output. debug2: channel 0: input open -> closed **** Welcome to Gerrit Code Review **** Hi gerrit developer, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. git clone ssh://gerrit_developer@<IP address>/REPOSITORY_NAME.git
Regards, Mani
| |||
The gerrit trigger config will only control the ssh key used by the Gerrit trigger to perform the polling.
The actual git clone command is separate from this and run on whatever machine the Jenkins executor is running on (presumably in this case your local machine) and this command has to have had its git ssh setup done correctly.
Thomas
From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com]
On Behalf Of mani chandel
Sent: 10 October 2013 15:25
To: repo-d...@googlegroups.com
Subject: Re: Starting a job with jenkins user gives ssh error
Hi Thomas,
I have specified the ssh keyfile in the gerrit trgger as below and also clicked on test connection. It shows success. However, I still face this issue. Please let me know if I am missing something.
|
Gerrit Server |
|||
|
|
Hostname |
localhost |
|
|
Loading... |
|||
|
|
Frontend URL |
||
|
Loading... |
|||
|
|
SSH Port |
29418 |
|
|
Loading... |
|||
|
|
Proxy |
||
|
Loading... |
|||
|
|
Username |
gerrit_developer |
|
|
Loading... |
|||
|
|
|
||
|
Loading... |
|||
|
|
SSH Keyfile |
C:\Users\253673\.ssh\id_rsa |
|
|
Loading... |
|||
|
|
SSH Keyfile Password |
[ ] |
|
|
Loading... |
|||
|
|
Build Current Patches Only |
[ ] |
|
--
;-)Luca.
Hi Magnus,
On executing this command on cmd ssh -vv -p 29418 gerrit_d...@localhost I get below output.