Package io.jenkins.plugins.explain_error
Class PipelineLogExtractor
java.lang.Object
io.jenkins.plugins.explain_error.PipelineLogExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFailedStepLog(Run<?, ?> run, int maxLines) Extracts the log output of the specific step that caused the pipeline failure.
-
Constructor Details
-
PipelineLogExtractor
public PipelineLogExtractor()
-
-
Method Details
-
getFailedStepLog
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
-