-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Critical
-
Component/s: htmlpublisher-plugin
-
None
When `publishReports` function throws IOException, it does not forward the exception to main pipeline script. The exception is just catched within the plugin function and set build result as Failure.
Â
The impact for the above is CRITICAL as the main pipeline script should fail the stage than continuing since build result is Failure.
Â
public static boolean publishReports(Run<?, ?> build, FilePath workspace, TaskListener listener, ... } catch (IOException e) {Â Â Â Â Â Â Â Â Util.displayIOException(e, listener); e.printStackTrace(listener.fatalError("HTML Publisher failure"));Â Â Â Â Â Â Â Â build.setResult(Result.FAILURE); return true; // THROW ERROR INSTEAD OF RETURING }