Class AmazonInspectorBuilder

java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.amazon.inspector.jenkins.amazoninspectorbuildstep.AmazonInspectorBuilder
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, SimpleBuildStep

public class AmazonInspectorBuilder extends Builder implements SimpleBuildStep
  • Field Details

  • Constructor Details

    • AmazonInspectorBuilder

      @DataBoundConstructor public AmazonInspectorBuilder(String archivePath, String artifactPath, String archiveType, boolean osArch, String iamRole, String awsRegion, String credentialId, String awsProfileName, String awsCredentialId, String sbomgenSelection, String sbomgenPath, int countCritical, int countHigh, int countMedium, int countLow, String oidcCredentialId, String sbomgenSkipFiles, Double epssThreshold, String suppressedCveList, Boolean isSuppressedCveEnabled, Boolean isAutoFailCveEnabled, String autoFailCveList, Boolean isThresholdEnabled, Boolean isEpssEnabled)
  • Method Details

    • setReportArtifactName

      @DataBoundSetter public void setReportArtifactName(String reportArtifactName)
    • setIsSeverityThresholdEnabled

      @DataBoundSetter public void setIsSeverityThresholdEnabled(boolean isSeverityThresholdEnabled)
    • setIsEpssThresholdEnabled

      @DataBoundSetter public void setIsEpssThresholdEnabled(boolean isEpssThresholdEnabled)
    • setIsThresholdEnabled

      @DataBoundSetter public void setIsThresholdEnabled(boolean isThresholdEnabled)
    • setIsEpssEnabled

      @DataBoundSetter public void setIsEpssEnabled(boolean isEpssEnabled)
    • getReportArtifactName

      public String getReportArtifactName()
    • getIsSeverityThresholdEnabled

      public boolean getIsSeverityThresholdEnabled()
    • getIsEpssThresholdEnabled

      public boolean getIsEpssThresholdEnabled()
    • getIsSuppressedCveEnabled

      public boolean getIsSuppressedCveEnabled()
    • getIsAutoFailCveEnabled

      public boolean getIsAutoFailCveEnabled()
    • getSuppressedCveList

      public String getSuppressedCveList()
    • getAutoFailCveList

      public String getAutoFailCveList()
    • perform

      public void perform(Run<?,?> build, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Specified by:
      perform in interface SimpleBuildStep
      Throws:
      IOException
      InterruptedException
    • getImageSha

      public static String getImageSha(String sbom)