-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 1.417
SSH Plugin 1.2
I have a job that is configured to "Execute shell script on remote host using ssh" but the job does not have an SSH Site selected. When the job runs, it fails with the following NullPointerException.
NullPointerException
[SSH] executing pre build script:
<removed actual SSH command as it contains company information>
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.NullPointerException
at org.jvnet.hudson.plugins.SSHBuildWrapper.executePreBuildScript(SSHBuildWrapper.java:72)
at org.jvnet.hudson.plugins.SSHBuildWrapper.setUp(SSHBuildWrapper.java:64)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:604)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
at hudson.model.Run.run(Run.java:1376)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:465)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:146)
The instructions for the SSH Plugin do state that I need to specify an SSH site so this is exception is triggered because the job is badly configured. However, it would be nice if the SSH Plugin handled this a bit more gracefully rather than throwing a NullPointerException.