Jenkins – NullPointerException when setting up the SVN+SSH Authentication

I try to checkout a project on Subversion through the SVN+SSH protocol in Jenkins. It prompts for the credentials as follow.
jenkins-null-pointer-exception-svn-ssh-1
 

Click the enter credentials link you could fill in the authentication details.
jenkins-null-pointer-exception-svn-ssh-2
 

The private key is generated by puttygen.exe. After clicking ok, i get the following error.

  • javax.servlet.ServletException: java.lang.NullPointerException…

jenkins-null-pointer-exception-svn-ssh-3
 

This failure is due to the fact that Jenkins only accepts private key in OpenSSH format. To fix the problem, open puttygen.exe and load your private key. Then export it to OpenSSH Key.
jenkins-null-pointer-exception-svn-ssh-4
 

Upload the key again and the authentication should work.

Done =)

Reference: How To Make Hudson Support Svn+Ssh Access?

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.