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.

Click the enter credentials link you could fill in the authentication details.

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

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


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.

Upload the key again and the authentication should work.

Done =)

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


Leave a Reply

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

You are commenting using your 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.