Change By: Phoebus Veiz (31/May/14 3:53 PM)
Environment: Ubuntu 14.04 LTS + OpenJDK 1.7 + Git 2.0.0 +  Gerrit 2.9-rc1+  repo 1.21 + Jenkins 1.565 + REPO plugin 1.6 + SSH Agent Plugin 1.4.1 + Credentials Plugin 1.13
Description: Use REPO plugin with ssh-agent plugin to repo init failed if passphrase is not empty.

Steps:

1. Use ssh-keygen to generate public/private rsa key pair, and enter passphrase;

2. Add Credentials in Jenkins named 'phoebus'
; , fill private key and passphrase. Fill public key to Gerrit.

3. Create a Job, use Gerrit Repo as Source Code Management, the Manifest Repository Url is ssh://phoebus@ubuntu:29418/platform/manifest, and SSH Agent-> Credentials chose 'phoebus';

3. Build failed, the Console Output is as follows:

{code:xml} 
Building in workspace /var/lib/jenkins/workspace/demo-repo
[ssh-agent] Using credentials phoebus
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Java/JNR ssh-agent
[ssh-agent] Started.
[demo-repo] $ repo init -u ssh://phoebus@ubuntu:29418/platform/manifest
Get ssh://phoebus@ubuntu:29418/platform/manifest
Permission denied (publickey).
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
{code} 

BTW, I try to create a new job and use Git Plugin to clone ssh://phoebus@ubuntu:29418/platform/manifest, it is successful.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to