Class SourceCodePainter
java.lang.Object
com.parasoft.findings.jenkins.coverage.api.metrics.source.SourceCodePainter
Highlights the code coverage information in all source code files. This process is executed on the agent node that
has all source files checked out.
-
Constructor Summary
ConstructorDescriptionSourceCodePainter
(Run<?, ?> build, FilePath workspace, String id) Creates a painter for the passed build, using the passed properties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
processSourceCodePainting
(Node rootNode, List<FileNode> files, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention, edu.hm.hafner.util.FilteredLog log) Processes the source code painting.
-
Constructor Details
-
SourceCodePainter
Creates a painter for the passed build, using the passed properties.- Parameters:
build
- The build which processes the source codeworkspace
- The workspace which contains the source code filesid
- the ID of the coverage results - each ID will store the files in a separate directory
-
-
Method Details
-
processSourceCodePainting
public void processSourceCodePainting(Node rootNode, List<FileNode> files, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention, edu.hm.hafner.util.FilteredLog log) throws InterruptedException Processes the source code painting.- Parameters:
rootNode
- the root of the treefiles
- the files to paintsourceCodeEncoding
- the encoding of the source code filessourceCodeRetention
- the source code retention strategylog
- The log- Throws:
InterruptedException
- if the painting process has been interrupted
-