Found in version 1.268
I am trying to publish results of an external job to my Hudson instance, per the
The job succeeds (I have tried it with "echo hello", "/bin/true", various
trivial things) and publishes the XML to the Hudson server. But the server
reports it as a failure always with no outputs.
I verified that the XML being submitted over http is correct and indicates success.
I remote debugged the server, and tracked the issue to a ClassCastException
being thrown here:
Executor.currentExecutor() line: 294
Computer.currentComputer() line: 524
ExternalRun(Run<JobT,RunT>).run(Run$Runner) line: 815
ExternalRun.acceptRemoteSubmission(Reader) line: 71
ExternalJob.doPostBuildResult(StaplerRequest, StaplerResponse) line: 63
The problem seems to be that the remote job submission is not executing in an
Executor thread - it's executing in a server thread (RequestHandlerThread for
the Winstone container) - so the cast to Executor is failing.