Class DependencyCheckPublisher

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, Serializable, SimpleBuildStep

public class DependencyCheckPublisher extends AbstractThresholdPublisher implements 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:
  • Constructor Details

    • DependencyCheckPublisher

      @DataBoundConstructor public DependencyCheckPublisher()
  • Method Details

    • getPattern

      public String getPattern()
      Returns the Ant file-set pattern of files to work with.
      Returns:
      Ant file-set pattern of files to work with
    • setPattern

      @DataBoundSetter public void setPattern(String pattern)
      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, IOException
      This method is called whenever the build step is executed.
      Specified by:
      perform in interface SimpleBuildStep
      Parameters:
      build - A Run object
      filePath - A FilePath object
      launcher - A Launcher object
      listener - A BuildListener object
      Throws:
      InterruptedException
      IOException
    • 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:
      InterruptedException
      IOException
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Specified by:
      getRequiredMonitorService in interface BuildStep