Class DependencyCheckToolBuilder

java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.DependencyCheck.DependencyCheckToolBuilder
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, Serializable, SimpleBuildStep

public class DependencyCheckToolBuilder extends Builder implements SimpleBuildStep, Serializable
Performs an analysis using the specified Dependency-Check CLI tool installation.
Since:
5.0.0
Author:
Steve Springett (steve.springett@owasp.org)
See Also:
  • Constructor Details

    • DependencyCheckToolBuilder

      @DataBoundConstructor public DependencyCheckToolBuilder(String odcInstallation)
  • Method Details

    • getOdcInstallation

      public String getOdcInstallation()
    • getAdditionalArguments

      public String getAdditionalArguments()
    • setAdditionalArguments

      @DataBoundSetter public void setAdditionalArguments(String additionalArguments)
    • isSkipOnScmChange

      public boolean isSkipOnScmChange()
    • setSkipOnScmChange

      @DataBoundSetter public void setSkipOnScmChange(boolean skipOnScmChange)
    • isSkipOnUpstreamChange

      public boolean isSkipOnUpstreamChange()
    • setSkipOnUpstreamChange

      @DataBoundSetter public void setSkipOnUpstreamChange(boolean skipOnUpstreamChange)
    • setStopBuild

      @DataBoundSetter public void setStopBuild(boolean stopBuild)
    • isStopBuild

      public boolean isStopBuild()
    • perform

      public void perform(@NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
      This method is called whenever the build step is executed.
      Specified by:
      perform in interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • buildArgumentList

      protected ArgumentListBuilder buildArgumentList(@NonNull String odcScript, @NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull EnvVars env) throws AbortException
      Throws:
      AbortException
    • getNvdCredentialsId

      public String getNvdCredentialsId()
    • setNvdCredentialsId

      @DataBoundSetter public void setNvdCredentialsId(String nvdCredentialsId)