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 localToken,
String customFlags,
String tarFilePath,
String containerRuntime,
String scannerPath) |
Modifier and Type | Method and Description |
---|---|
String |
getContainerRuntime() |
String |
getCustomFlags() |
AquaDockerScannerBuilder.DescriptorImpl |
getDescriptor() |
boolean |
getHideBase() |
String |
getHostedImage() |
String |
getLocalImage() |
String |
getLocalToken() |
String |
getLocationType()
Public access required by config.jelly to display current values in
configuration screen.
|
String |
getNotCompliesCmd() |
String |
getOnDisallowed() |
String |
getPolicies() |
boolean |
getRegister() |
String |
getRegistry() |
String |
getScannerPath() |
boolean |
getShowNegligible() |
String |
getTarFilePath() |
String |
isLocationType(String type) |
String |
isOnDisallowed(String state) |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setContainerRuntime(String containerRuntime) |
void |
setLocalToken(String localToken) |
void |
setScannerPath(String scannerPath) |
void |
setTarFilePath(String tarFilePath) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
public 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 localToken, String customFlags, String tarFilePath, String containerRuntime, String scannerPath)
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 getNotCompliesCmd()
public String getPolicies()
@CheckForNull public String getLocalToken()
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)
@DataBoundSetter public void setLocalToken(@CheckForNull String localToken)
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.SimpleBuildStep
hudson.AbortException
InterruptedException
public AquaDockerScannerBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2023. All rights reserved.