I am using Jenkins 2.89.2 installed as Windows Service. When I tried to add SSH Site under configuration, I get an exception
java.lang.NullPointerException
at org.jvnet.hudson.plugins.CredentialsSSHSite.<init>(CredentialsSSHSite.java:73)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
at org.kohsuke.stapler.RequestImpl.bindJSONToList(RequestImpl.java:519)
at org.jvnet.hudson.plugins.SSHBuildWrapper$DescriptorImpl.configure(SSHBuildWrapper.java:193)
at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:3706)
at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:3670)
at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
Anyone else experienced this error?
答案 0 :(得分:0)
这似乎是一个已知但尚未修复的错误JENKINS-46172
由于页面上的错误导致未指定的ssh凭据,我遇到此错误。
在我的情况下,“凭据”列表为空,“添加”按钮不起作用 所以我不得不去“Jenkins / Credentials”菜单并在那里输入凭据。 它可以从列表中选择凭据,并且ssh主机添加没有描述错误。