Class DependencyCheckPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.jenkinsci.plugins.DependencyCheck.AbstractThresholdPublisher
org.jenkinsci.plugins.DependencyCheck.DependencyCheckPublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,Serializable,SimpleBuildStep
Ported from the Dependency-Track Jenkins plugin. Not related to the original
DependencyCheckPublisher included with v1.0.0 - v4.0.2.
- Since:
- 5.0.0
- Author:
- Steve Springett (steve.springett@owasp.org)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Ant file-set pattern of files to work with.booleanbooleanvoidThis method is called whenever the build step is executed.process(Run<?, ?> build, FilePath filePath, Launcher launcher, TaskListener listener) voidsetPattern(String pattern) Sets the Ant file-set pattern of files to work with.voidsetSkipNoReportFiles(boolean skipNoReportFiles) voidsetStopBuild(boolean stopBuild) Methods inherited from class org.jenkinsci.plugins.DependencyCheck.AbstractThresholdPublisher
getFailedNewCritical, getFailedNewHigh, getFailedNewLow, getFailedNewMedium, getFailedTotalCritical, getFailedTotalHigh, getFailedTotalLow, getFailedTotalMedium, getNewThresholdAnalysisExploitable, getTotalThresholdAnalysisExploitable, getUnstableNewCritical, getUnstableNewHigh, getUnstableNewLow, getUnstableNewMedium, getUnstableTotalCritical, getUnstableTotalHigh, getUnstableTotalLow, getUnstableTotalMedium, setFailedNewCritical, setFailedNewHigh, setFailedNewLow, setFailedNewMedium, setFailedTotalCritical, setFailedTotalHigh, setFailedTotalLow, setFailedTotalMedium, setNewThresholdAnalysisExploitable, setTotalThresholdAnalysisExploitable, setUnstableNewCritical, setUnstableNewHigh, setUnstableNewLow, setUnstableNewMedium, setUnstableTotalCritical, setUnstableTotalHigh, setUnstableTotalLow, setUnstableTotalMediumMethods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
DependencyCheckPublisher
@DataBoundConstructor public DependencyCheckPublisher()
-
-
Method Details
-
getPattern
Returns the Ant file-set pattern of files to work with.- Returns:
- Ant file-set pattern of files to work with
-
setPattern
Sets the Ant file-set pattern of files to work with.- Parameters:
pattern- the pattern of files
-
setStopBuild
@DataBoundSetter public void setStopBuild(boolean stopBuild) -
isStopBuild
public boolean isStopBuild() -
isSkipNoReportFiles
public boolean isSkipNoReportFiles() -
setSkipNoReportFiles
@DataBoundSetter public void setSkipNoReportFiles(boolean skipNoReportFiles) -
perform
public void perform(@NonNull Run<?, ?> build, @NonNull FilePath filePath, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOExceptionThis method is called whenever the build step is executed.- Specified by:
performin interfaceSimpleBuildStep- Parameters:
build- A Run objectfilePath- A FilePath objectlauncher- A Launcher objectlistener- A BuildListener object- Throws:
InterruptedExceptionIOException
-
process
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Result process(@NonNull Run<?, ?> build, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-