public class AquaDockerScannerBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
When a build is performed, the perform(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
AquaDockerScannerBuilder.DescriptorImpl
Descriptor for
AquaDockerScannerBuilder. |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Modifier and Type | Field and Description |
|---|---|
static int |
DISALLOWED_CODE |
static int |
OK_CODE |
| Constructor and Description |
|---|
AquaDockerScannerBuilder(String locationType,
String registry,
boolean register,
String localImage,
String hostedImage,
String onDisallowed,
String notCompliesCmd,
boolean hideBase,
boolean showNegligible,
String policies,
String customFlags,
String tarFilePath,
String containerRuntime,
String scannerPath) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic static final int OK_CODE
public static final int DISALLOWED_CODE
@DataBoundConstructor public AquaDockerScannerBuilder(String locationType, String registry, boolean register, String localImage, String hostedImage, String onDisallowed, String notCompliesCmd, boolean hideBase, boolean showNegligible, String policies, String customFlags, String tarFilePath, String containerRuntime, String scannerPath)
public static void setCount(int count)
public static void setBuildId(int buildId)
public String getLocationType()
@CheckForNull public String getContainerRuntime()
@CheckForNull public String getScannerPath()
public String getRegistry()
public boolean getRegister()
public String getLocalImage()
public String getHostedImage()
public String getOnDisallowed()
public String getVersion()
public String getNotCompliesCmd()
public String getPolicies()
public String getCustomFlags()
public boolean getHideBase()
public boolean getShowNegligible()
@CheckForNull public String getTarFilePath()
@DataBoundSetter public void setContainerRuntime(@CheckForNull String containerRuntime)
@DataBoundSetter public void setScannerPath(@CheckForNull String scannerPath)
@DataBoundSetter public void setTarFilePath(@CheckForNull String tarFilePath)
public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws hudson.AbortException,
InterruptedException
perform in interface jenkins.tasks.SimpleBuildStephudson.AbortExceptionInterruptedExceptionpublic AquaDockerScannerBuilder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2021. All rights reserved.