Class CoverageReportScanner
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<io.jenkins.plugins.util.AgentFileVisitor.FileVisitorResult<T>>
-
- io.jenkins.plugins.util.AgentFileVisitor<ModuleNode>
-
- com.parasoft.findings.jenkins.coverage.api.metrics.steps.CoverageReportScanner
-
- All Implemented Interfaces:
FilePath.FileCallable<io.jenkins.plugins.util.AgentFileVisitor.FileVisitorResult<ModuleNode>>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class CoverageReportScanner extends io.jenkins.plugins.util.AgentFileVisitor<ModuleNode>
Scans the workspace for coverage reports that match a specified Ant file pattern and parse these files with the specified parser. Creates a newModuleNode
for each parsed file. For files that cannot be read, an empty module node will be returned.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.jenkins.plugins.util.AgentFileVisitor
io.jenkins.plugins.util.AgentFileVisitor.FileVisitorResult<T extends Serializable>
-
-
Constructor Summary
Constructors Constructor Description CoverageReportScanner(String filePattern, String encoding, boolean followSymbolicLinks, CoverageTool.Parser parser)
Creates a new instance ofCoverageReportScanner
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<ModuleNode>
processFile(Path file, Charset charset, edu.hm.hafner.util.FilteredLog log)
-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Constructor Detail
-
CoverageReportScanner
public CoverageReportScanner(String filePattern, String encoding, boolean followSymbolicLinks, CoverageTool.Parser parser)
Creates a new instance ofCoverageReportScanner
.- Parameters:
filePattern
- ant file-set pattern to scan for files to parseencoding
- encoding of the files to parsefollowSymbolicLinks
- if the scanner should traverse symbolic linksparser
- the parser to use
-
-
Method Detail
-
processFile
protected Optional<ModuleNode> processFile(Path file, Charset charset, edu.hm.hafner.util.FilteredLog log)
- Specified by:
processFile
in classio.jenkins.plugins.util.AgentFileVisitor<ModuleNode>
-
-