public class FoundIndication extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
FILE_ENCODING
The platform file encoding.
|
Constructor and Description |
---|
FoundIndication(hudson.model.Run build,
String originalPattern,
String matchingFile,
String matchingString)
Deprecated.
|
FoundIndication(hudson.model.Run build,
String originalPattern,
String matchingFile,
String matchingString,
Integer matchingLine)
Standard constructor.
|
FoundIndication(String pattern,
String matchingFile,
String matchingString)
Deprecated.
Use
FoundIndication(String, String, String, Integer) instead |
FoundIndication(String pattern,
String matchingFile,
String matchingString,
Integer matchingLine)
JSON Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convertFromLineNumber(List<String> log)
|
hudson.model.Run |
getBuild()
Getter for the build.
|
String |
getFirstMatchingLine()
Getter for the first matching line (useful with multi-line build log indications.
|
String |
getMatchingFile()
Getter for the matching file.
|
int |
getMatchingHash()
The hash-code of the
matchingString . |
int |
getMatchingLine()
The matching line number.
|
String |
getMatchingString()
Getter for the matching String.
|
String |
getPattern()
Getter for the pattern.
|
Object |
readResolve()
Called after deserialization.
|
protected static final String FILE_ENCODING
@Deprecated public FoundIndication(hudson.model.Run build, String originalPattern, String matchingFile, String matchingString)
FoundIndication(Run, String, String, String, Integer)
insteadbuild
- the build of this indication.originalPattern
- the original pattern we used to match.matchingFile
- the path to the file in which we found the match.matchingString
- the String that makes up the match.@Deprecated public FoundIndication(String pattern, String matchingFile, String matchingString)
FoundIndication(String, String, String, Integer)
insteadpattern
- the pattern we used to match.matchingFile
- the path to the file in which we found the match.matchingString
- the String that makes up the match.public FoundIndication(hudson.model.Run build, String originalPattern, String matchingFile, String matchingString, Integer matchingLine)
build
- the build of this indication.originalPattern
- the original pattern we used to match.matchingFile
- the path to the file in which we found the match.matchingString
- the String that makes up the match.matchingLine
- the line number of the found indicationpublic FoundIndication(String pattern, String matchingFile, String matchingString, Integer matchingLine)
pattern
- the pattern we used to match.matchingFile
- the path to the file in which we found the match.matchingString
- the String that makes up the match.matchingLine
- the line number of the found indicationpublic String getMatchingFile()
public String getPattern()
public hudson.model.Run getBuild()
public String getMatchingString()
public String getFirstMatchingLine()
getMatchingString()
.public void convertFromLineNumber(List<String> log)
matchingLine
with matchingString
from the text in the list at
matchingLine
s position. But only if matchingLine
is non null.log
- the build-log.public Object readResolve()
OldDataConverter
from matchingLine
to matchingString
if matchingLine
is non null.public int getMatchingLine()
public int getMatchingHash()
matchingString
.
Convenience method mostly for jelly.Copyright © 2016–2020. All rights reserved.