|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.DependencyCheck.AbstractDependencyCheckBuilder
org.jenkinsci.plugins.DependencyCheck.DependencyCheckBuilder
public class DependencyCheckBuilder
The DependencyCheck builder class provides the ability to invoke a DependencyCheck build as a Jenkins build step. This class takes the configuration from the UI, creates options from them and passes them to the DependencyCheckExecutor for the actual execution of the DependencyCheck Engine and ReportGenerator.
| Nested Class Summary | |
|---|---|
static class |
DependencyCheckBuilder.DescriptorImpl
Descriptor for DependencyCheckBuilder. |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary |
|---|
| Fields inherited from class org.jenkinsci.plugins.DependencyCheck.AbstractDependencyCheckBuilder |
|---|
OUT_TAG, skipOnScmChange, skipOnUpstreamChange |
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
DependencyCheckBuilder(String scanpath,
String outdir,
String datadir,
String suppressionFile,
String zipExtensions,
Boolean isAutoupdateDisabled,
Boolean isVerboseLoggingEnabled,
Boolean includeHtmlReports,
Boolean skipOnScmChange,
Boolean skipOnUpstreamChange,
Boolean useMavenArtifactsScanPath)
|
|
| Method Summary | |
|---|---|
boolean |
areMavenArtifactsUsedForScanPath()
Retrieves whether Maven artifacts from the build should be used as the scan path. |
String |
getDatadir()
Retrieves the data directory that DependencyCheck will use. |
DependencyCheckBuilder.DescriptorImpl |
getDescriptor()
A Descriptor Implementation. |
String |
getOutdir()
Retrieves the output directory to write the report. |
String |
getScanpath()
Retrieves the path to scan. |
String |
getSuppressionFile()
Retrieves the suppression file that DependencyCheck will use. |
String |
getZipExtensions()
Retrieves a comma-separated list of file extensions to treat as ZIP format. |
boolean |
includeHtmlReports()
Retrieves whether HTML reports should be generated (in addition to the XML report) or not. |
boolean |
isAutoupdateDisabled()
Retrieves whether auto update should be disabled or not. |
boolean |
isMaven(Class<? extends hudson.model.AbstractProject> clazz)
Convenience method that determines if the project is a Maven project. |
boolean |
isVerboseLoggingEnabled()
Retrieves whether verbose logging is enabled or not. |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
This method is called whenever the DependencyCheck build step is executed. |
boolean |
skipOnScmChange()
Retrieves whether execution of the builder should be skipped if triggered by an SCM change. |
boolean |
skipOnUpstreamChange()
Retrieves whether execution of the builder should be skipped if triggered by an Upstream change. |
| Methods inherited from class org.jenkinsci.plugins.DependencyCheck.AbstractDependencyCheckBuilder |
|---|
configureDataDirectory, configureDataMirroring, configureProxySettings, optionsBuilder, setOptions, substituteVariable, toCommaSeparatedString |
| Methods inherited from class hudson.tasks.Builder |
|---|
all, getRequiredMonitorService, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor
public DependencyCheckBuilder(String scanpath,
String outdir,
String datadir,
String suppressionFile,
String zipExtensions,
Boolean isAutoupdateDisabled,
Boolean isVerboseLoggingEnabled,
Boolean includeHtmlReports,
Boolean skipOnScmChange,
Boolean skipOnUpstreamChange,
Boolean useMavenArtifactsScanPath)
| Method Detail |
|---|
public String getScanpath()
public String getOutdir()
public String getDatadir()
public String getSuppressionFile()
public String getZipExtensions()
public boolean isAutoupdateDisabled()
public boolean isVerboseLoggingEnabled()
public boolean includeHtmlReports()
public boolean skipOnScmChange()
public boolean skipOnUpstreamChange()
public boolean areMavenArtifactsUsedForScanPath()
public boolean isMaven(Class<? extends hudson.model.AbstractProject> clazz)
isMaven in class AbstractDependencyCheckBuilderclazz - The projects class
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class AbstractDependencyCheckBuilderbuild - A Build objectlauncher - A Launcher objectlistener - A BuildListener object
InterruptedException
IOExceptionpublic DependencyCheckBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||