Class AquaDockerScannerBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- org.jenkinsci.plugins.aquadockerscannerbuildstep.AquaDockerScannerBuilder
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.tasks.Builder>
,hudson.tasks.BuildStep
,jenkins.tasks.SimpleBuildStep
public class AquaDockerScannerBuilder extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep
This is the builder class.When a build is performed, the
perform(hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener)
method will be invoked.- Author:
- Oran Moshai
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AquaDockerScannerBuilder.DescriptorImpl
Descriptor forAquaDockerScannerBuilder
.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
-
-
Field Summary
Fields Modifier and Type Field Description static int
DISALLOWED_CODE
static int
OK_CODE
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
-
-
-
Field Detail
-
OK_CODE
public static final int OK_CODE
- See Also:
- Constant Field Values
-
DISALLOWED_CODE
public static final int DISALLOWED_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AquaDockerScannerBuilder
@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)
-
-
Method Detail
-
setCount
public static void setCount(int count)
-
setBuildId
public static void setBuildId(int buildId)
-
getLocationType
public String getLocationType()
Public access required by config.jelly to display current values in configuration screen.
-
getContainerRuntime
@CheckForNull public String getContainerRuntime()
-
getScannerPath
@CheckForNull public String getScannerPath()
-
getRegistry
public String getRegistry()
-
getRegister
public boolean getRegister()
-
getLocalImage
public String getLocalImage()
-
getHostedImage
public String getHostedImage()
-
getOnDisallowed
public String getOnDisallowed()
-
getNotCompliesCmd
public String getNotCompliesCmd()
-
getPolicies
public String getPolicies()
-
getLocalToken
@CheckForNull public String getLocalToken()
-
getCustomFlags
public String getCustomFlags()
-
getHideBase
public boolean getHideBase()
-
getShowNegligible
public boolean getShowNegligible()
-
getTarFilePath
@CheckForNull public String getTarFilePath()
-
setContainerRuntime
@DataBoundSetter public void setContainerRuntime(@CheckForNull String containerRuntime)
-
setScannerPath
@DataBoundSetter public void setScannerPath(@CheckForNull String scannerPath)
-
setTarFilePath
@DataBoundSetter public void setTarFilePath(@CheckForNull String tarFilePath)
-
setLocalToken
@DataBoundSetter public void setLocalToken(@CheckForNull String localToken)
-
perform
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws hudson.AbortException, InterruptedException
- Specified by:
perform
in interfacejenkins.tasks.SimpleBuildStep
- Throws:
hudson.AbortException
InterruptedException
-
getDescriptor
public AquaDockerScannerBuilder.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfacehudson.model.Describable<hudson.tasks.Builder>
- Overrides:
getDescriptor
in classhudson.tasks.Builder
-
-