org.jenkinsci.plugins.DependencyCheck
Class DependencyCheckUpdateOnlyBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.DependencyCheck.AbstractDependencyCheckBuilder
org.jenkinsci.plugins.DependencyCheck.DependencyCheckUpdateOnlyBuilder
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep, Serializable
public class DependencyCheckUpdateOnlyBuilder
- extends AbstractDependencyCheckBuilder
- implements Serializable
The DependencyCheckUpdateOnlyBuilder builder class provides the ability to invoke a DependencyCheck
NVD update only 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.
- Author:
- Steve Springett (steve.springett@owasp.org)
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| 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 |
DependencyCheckUpdateOnlyBuilder
@DataBoundConstructor
public DependencyCheckUpdateOnlyBuilder(String datadir,
Boolean isVerboseLoggingEnabled,
Boolean includeHtmlReports)
getDatadir
public String getDatadir()
- Retrieves the data directory that DependencyCheck will use. This is a per-build config item.
This method must match the value in config.jelly.
isVerboseLoggingEnabled
public boolean isVerboseLoggingEnabled()
- Retrieves whether verbose logging is enabled or not. This is a per-build config item.
This method must match the value in config.jelly.
perform
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
- This method is called whenever the DependencyCheck build step is executed.
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class AbstractDependencyCheckBuilder
- Parameters:
build - A Build objectlauncher - A Launcher objectlistener - A BuildListener object
- Returns:
- A true or false value indicating if the build was successful or if it failed
- Throws:
InterruptedException
IOException
getDescriptor
public DependencyCheckUpdateOnlyBuilder.DescriptorImpl getDescriptor()
- A Descriptor Implementation.
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptor in class hudson.tasks.Builder
Copyright © 2012-2015 OWASP. All Rights Reserved.