public class CodeCoverageScanner extends Object
Constructor and Description |
---|
CodeCoverageScanner(CodeCoverageBuilder config)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Properties |
buildAnalysisProperties(String analysisPropertiesFilePath,
String analysisPropertiesStr,
hudson.FilePath workspace,
PrintStream logger)
Builds and returns a list of properties using the given analysis file path and string.
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Performs the Code Coverage scan.
|
public CodeCoverageScanner(CodeCoverageBuilder config)
config
- the CodeCoverageBuilder
to use for the scanpublic void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
run
- the current running Jenkins buildworkspace
- the Jenkins job workspace directorylauncher
- the way to start a processlistener
- the build listenerIOException
- if an error occurs performing the scanInterruptedException
- if the user cancels the scanprotected Properties buildAnalysisProperties(String analysisPropertiesFilePath, String analysisPropertiesStr, hudson.FilePath workspace, PrintStream logger)
Properties in the given string take precedence over properties in the file located at the given path.
analysisPropertiesFilePath
- the String
path of a file containing analysis propertiesanalysisPropertiesStr
- the String
containing analysis propertiesworkspace
- the workspace directorylogger
- the PrintStream
to use for capturing log statementsProperties
Copyright © 2016–2022. All rights reserved.