Class CoverageTool
java.lang.Object
hudson.model.AbstractDescribableImpl<CoverageTool>
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 class
Descriptor forCoverageTool
.static enum
Supported coverage parsers.static enum
Parser types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual pattern to work with.protected Object
Called after deserialization to retain backward compatibility.void
setParser
(CoverageTool.Parser parser) Sets the parser to be used to read the input files.void
setPattern
(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:
getDescriptor
in interfaceDescribable<CoverageTool>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<CoverageTool>
-
getDisplayName
-