-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
Found in version 1.268
I am trying to publish results of an external job to my Hudson instance, per the
instructions here:
http://hudson.gotdns.com/wiki/display/JENKINS/Monitoring+external+jobs
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:
return (Executor)Thread.currentThread();
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.