Class ScanForIssuesStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
io.jenkins.plugins.analysis.core.steps.ScanForIssuesStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class ScanForIssuesStep
extends org.jenkinsci.plugins.workflow.steps.Step
Scan files or the console log for issues.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Descriptor for this step: defines the context and the UI elements.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScm()
io.jenkins.plugins.prism.SourceCodeRetention
List
<io.jenkins.plugins.prism.SourceCodeDirectory> getTool()
boolean
Deprecated.boolean
isQuiet()
boolean
Returns whether SCM blaming should be disabled.boolean
Returns whether post-processing of the issues should be disabled.void
setBlameDisabled
(boolean blameDisabled) Deprecated.usesetSkipBlames(boolean)
insteadvoid
setFilters
(List<RegexpFilter> filters) void
setQuiet
(boolean quiet) Sets whether logging output should be enabled.void
Sets the SCM that should be used to find the reference build for.void
setSkipBlames
(boolean skipBlames) void
setSkipPostProcessing
(boolean skipPostProcessing) void
setSourceCodeEncoding
(String sourceCodeEncoding) Sets the encoding to use to read source files.void
setSourceCodeRetention
(io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention) Defines the retention strategy for source code files.void
setSourceDirectories
(List<io.jenkins.plugins.prism.SourceCodeDirectory> sourceDirectories) Sets the paths to the directories that contain the source code.void
Sets the static analysis tool that will scan files and create issues.org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
ScanForIssuesStep
@DataBoundConstructor public ScanForIssuesStep()Creates a new instance ofScanForIssuesStep
.
-
-
Method Details
-
getTool
-
setTool
Sets the static analysis tool that will scan files and create issues.- Parameters:
tool
- the static analysis tool
-
getFilters
-
setFilters
-
setQuiet
@DataBoundSetter public void setQuiet(boolean quiet) Sets whether logging output should be enabled.- Parameters:
quiet
- boolean flag to mute logging
-
isQuiet
public boolean isQuiet() -
setScm
Sets the SCM that should be used to find the reference build for. The reference recorder will select the SCM based on a substring comparison, there is no need to specify the full name.- Parameters:
scm
- the ID of the SCM to use (a substring of the full ID)
-
getScm
-
isSkipBlames
public boolean isSkipBlames()Returns whether SCM blaming should be disabled.- Returns:
true
if SCM blaming should be disabled
-
setSkipBlames
@DataBoundSetter public void setSkipBlames(boolean skipBlames) -
setBlameDisabled
Deprecated.usesetSkipBlames(boolean)
insteadSets whether SCM blaming should be disabled.- Parameters:
blameDisabled
-true
if SCM blaming should be disabled
-
isBlameDisabled
Deprecated.useisSkipBlames()
insteadReturns whether SCM blaming is disabled.- Returns:
true
if SCM blaming should be disabled
-
isSkipPostProcessing
public boolean isSkipPostProcessing()Returns whether post-processing of the issues should be disabled.- Returns:
true
if post-processing of the issues should be disabled.
-
setSkipPostProcessing
@DataBoundSetter public void setSkipPostProcessing(boolean skipPostProcessing) -
getSourceCodeEncoding
-
setSourceCodeEncoding
Sets the encoding to use to read source files.- Parameters:
sourceCodeEncoding
- the encoding, e.g. "ISO-8859-1"
-
setSourceDirectories
@DataBoundSetter public void setSourceDirectories(List<io.jenkins.plugins.prism.SourceCodeDirectory> sourceDirectories) Sets the paths to the directories that contain the source code. If not relative and thus not part of the workspace, then these directories need to be added in Jenkins global configuration to prevent accessing of forbidden resources.- Parameters:
sourceDirectories
- directories containing the source code
-
getSourceDirectories
-
setSourceCodeRetention
@DataBoundSetter public void setSourceCodeRetention(io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention) Defines the retention strategy for source code files.- Parameters:
sourceCodeRetention
- the retention strategy for source code files
-
getSourceCodeRetention
public io.jenkins.plugins.prism.SourceCodeRetention getSourceCodeRetention() -
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
-
isSkipBlames()
instead