Class CoverageTool
java.lang.Object
io.jenkins.plugins.coverage.metrics.steps.CoverageTool
- All Implemented Interfaces:
Describable<CoverageTool>,Serializable
A coverage tool that can produce a
coverage tree by parsing a given report file.- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor forCoverageTool.static enumSupported coverage parsers.static enumParser types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual pattern to work with.protected ObjectCalled after deserialization to retain backward compatibility.voidsetParser(CoverageTool.Parser parser) Sets the parser to be used to read the input files.voidsetPattern(String pattern) Sets the Ant file-set pattern of files to work with.toString()
-
Constructor Details
-
CoverageTool
@DataBoundConstructor public CoverageTool()Creates a newCoverageTool.
-
-
Method Details
-
getParser
-
setParser
Sets the parser to be used to read the input files.- Parameters:
parser- the parser to use
-
readResolve
Called after deserialization to retain backward compatibility.- Returns:
- this
-
setPattern
Sets the Ant file-set pattern of files to work with. If the pattern is undefined, then the console log is scanned.- Parameters:
pattern- the pattern to use
-
getPattern
-
getActualPattern
Returns the actual pattern to work with. If no user-defined pattern is given, then the default pattern is returned.- Returns:
- the name
- See Also:
-
toString
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<CoverageTool>
-
getDisplayName
-