Class ChangingBuildStatusErrorHandler

    • Constructor Detail

      • ChangingBuildStatusErrorHandler

        @DataBoundConstructor
        public ChangingBuildStatusErrorHandler​(String result)
    • Method Detail

      • getResult

        public String getResult()
      • handle

        public boolean handle​(Exception e,
                              @NonNull
                              Run<?,​?> run,
                              @NonNull
                              TaskListener listener)
        Logs error to build console and changes build result
        Parameters:
        e - exception to handle (log, ignore, process, rethrow)
        run - run object from the step
        listener - listener object from the step
        Returns:
        true as of it terminating handler