I have one. Jar file that loads the data into the database, when it runs. I have determined to run this job through Jenkins when I execute a job in Jenkins. Jar runs successfully. However, if there is an empty indicator exception in the job and it has not been completed successfully, then Jenkins says that the job is "close" if there is a problem during the job execution, how can I fail in the job?
@Corry's solution is good. And if you do not want to write and support a Junket Test in Jenkins, then you can do whatever you explain: Hold blank-mark exception (in fact, there's just a top-level cache in your app), And call the API to exit the return code:
try {myCode.call (); The catch (exception e) {System.out.println ("An exception was caught at the top level:" + E); System.exit (-1); }
No comments:
Post a Comment