-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Hudson 1.395
CIFS-Publisher Plugin 1.1.12
Windows XP SP3 Host
See HUDSON-8718 for the original issue before the move to Jenkins.
In the CIFS-Publisher project settings, when the destination is left blank, the system reports a strange error:
ERROR: Failed to upload files
java.lang.NullPointerException
at com.slide.hudson.plugins.CIFSPublisher.perform(CIFSPublisher.java:167)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:622)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:579)
at hudson.model.Build$RunnerImpl.post2(Build.java:156)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:548)
at hudson.model.Run.run(Run.java:1386)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Finished: UNSTABLEI would expect a more descriptive error message and a blank field to signify the root of the share (preferred option).
Workaround: if the intention was to put the file at the root of the share, enter "." for the destination folder.
Fixed issue with empty destination path by checking for it and handling it in a slightly different way from other paths.