Class PipelineLogExtractor

java.lang.Object
io.jenkins.plugins.explain_error.PipelineLogExtractor

public class PipelineLogExtractor extends Object
  • Field Details

  • Constructor Details

    • PipelineLogExtractor

      public PipelineLogExtractor(Run<?,?> run, int maxLines)
  • Method Details

    • getFailedStepLog

      public List<String> getFailedStepLog() throws IOException
      Extracts the log output of the specific step that caused the pipeline failure.
      Returns:
      A non-null list of log lines for the failed step, or the overall build log if no failed step with a log is found.
      Throws:
      IOException
    • getUrl

      public String getUrl()