Class PipelineLogExtractor

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

public class PipelineLogExtractor extends Object
  • Constructor Details

    • PipelineLogExtractor

      public PipelineLogExtractor()
  • Method Details

    • getFailedStepLog

      public static List<String> getFailedStepLog(@NonNull Run<?,?> run, int maxLines) throws IOException
      Extracts the log output of the specific step that caused the pipeline failure.
      Parameters:
      run - The pipeline build
      Returns:
      The log text of the failed step, or null if no failed step with a log is found.
      Throws:
      IOException