public abstract class FailureReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FailureReader.InterruptibleCharSequence
CharSequence that notices thread interrupts -- as might be necessary
to recover from a loose regex on unexpected challenging input.
|
Modifier and Type | Field and Description |
---|---|
protected Indication |
indication
The indication we are looking for.
|
Constructor and Description |
---|
FailureReader(Indication indication)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
FoundIndication |
scan(hudson.model.AbstractBuild build)
Deprecated.
|
FoundIndication |
scan(hudson.model.AbstractBuild build,
PrintStream buildLog)
Deprecated.
|
FoundIndication |
scan(hudson.model.Run build)
Scans a build log.
|
FoundIndication |
scan(hudson.model.Run build,
PrintStream buildLog)
Scans for indications of a failure cause.
|
protected FoundIndication |
scanMultiLineOneFile(hudson.model.Run build,
BufferedReader reader,
String currentFile)
Scans one file for the required multi-line pattern.
|
static List<FoundFailureCause> |
scanSingleLinePatterns(List<FailureCause> causes,
hudson.model.Run build,
BufferedReader reader,
String currentFile)
Checks all patterns one-by-one for entire file.
|
protected Indication indication
public FailureReader(Indication indication)
indication
- the indication to look for.@Deprecated public FoundIndication scan(hudson.model.AbstractBuild build) throws IOException
scan(hudson.model.Run)
.build
- - the build whose log should be scanned.IOException
- if so.public FoundIndication scan(hudson.model.Run build) throws IOException
build
- - the build whose log should be scanned.IOException
- if so.@Deprecated public FoundIndication scan(hudson.model.AbstractBuild build, PrintStream buildLog)
scan(hudson.model.Run, java.io.PrintStream)
.build
- the build to scan for indications.buildLog
- the log of the build.public FoundIndication scan(hudson.model.Run build, PrintStream buildLog)
build
- the build to scan for indications.buildLog
- the log of the build.public static List<FoundFailureCause> scanSingleLinePatterns(List<FailureCause> causes, hudson.model.Run build, BufferedReader reader, String currentFile) throws IOException
causes
- list of failure causes that we a looking for.build
- current build.reader
- file reader.currentFile
- file name.IOException
- Exception.protected FoundIndication scanMultiLineOneFile(hudson.model.Run build, BufferedReader reader, String currentFile) throws IOException
build
- the build we are processing.reader
- the reader to read from.currentFile
- the file path of the file we want to scan.IOException
- if problems occur in the reader handling.Copyright © 2016–2021. All rights reserved.