Search code examples
javahudsonhudson-pluginshudson-api

Detect java error in Hudson execution


I'am executing an java script in Hudson server. I want throw new error if the java fail but I dont know how to do it. I want to throw new error because I configured send new email when the enter image description hereerror throw.


Solution

  • The solutions is notify to the VM that the process failed, the way is: System.exit(1) (in catch block)