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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionAmazonInspectorBuilder(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 isLicenseCollectionEnabled, Boolean isThresholdEnabled, Boolean isEpssEnabled) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringgetImageSha(String sbom) booleanbooleanbooleanbooleanbooleanstatic PrintStreamConsole logger for the current build thread, or System.out if called outside a build.voidvoidsetIsEpssEnabled(boolean isEpssEnabled) voidsetIsEpssThresholdEnabled(boolean isEpssThresholdEnabled) voidsetIsSeverityThresholdEnabled(boolean isSeverityThresholdEnabled) voidsetIsThresholdEnabled(boolean isThresholdEnabled) static voidsetLogger(PrintStream logger) voidsetReportArtifactName(String reportArtifactName) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
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 isLicenseCollectionEnabled, Boolean isThresholdEnabled, Boolean isEpssEnabled)
-
-
Method Details
-
getLogger
Console logger for the current build thread, or System.out if called outside a build. -
setLogger
-
clearLogger
public static void clearLogger() -
setReportArtifactName
-
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
-
getIsSeverityThresholdEnabled
public boolean getIsSeverityThresholdEnabled() -
getIsEpssThresholdEnabled
public boolean getIsEpssThresholdEnabled() -
getIsSuppressedCveEnabled
public boolean getIsSuppressedCveEnabled() -
getIsAutoFailCveEnabled
public boolean getIsAutoFailCveEnabled() -
getIsLicenseCollectionEnabled
public boolean getIsLicenseCollectionEnabled() -
getSuppressedCveList
-
getAutoFailCveList
-
perform
public void perform(Run<?, ?> build, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Specified by:
performin interfaceSimpleBuildStep- Throws:
IOExceptionInterruptedException
-
getImageSha
-