-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
ubuntu 10.04
When I create a very simple project which executes a shell script, the job finishes quite fast, claims to be successful, but the script hasn't been executed.
After turning on the logging the following appears:
FINE: testproject #3 : result is set to SUCCESS
java.lang.Exception
at hudson.model.Run.setResult(Run.java:334)
at hudson.model.Run.run(Run.java:1362)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:152)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
I had a quick look at the source code and there are multiple things
- for some reason the result is null
- when an exception is thrown the build shouldn't be successful
- when the line 334 (LOGGER.log(FINE, toString()+" : result is set to "+r,new Exception()); ) is executed it appends a null at the end of the log message