Class PortshiftVulnerabilityScannerBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.portshift_vulnerability_scanner.PortshiftVulnerabilityScannerBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class PortshiftVulnerabilityScannerBuilder extends Builder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PortshiftVulnerabilityScannerBuilder.DescriptorImpl
Descriptor forPortshiftVulnerabilityScannerBuilder
.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_SECURE_CN_PRODUCTION_URL
protected static String
PLUGIN_NAME
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description PortshiftVulnerabilityScannerBuilder(String secureCnAccessKey, String secureCnSecretKeyId, String imageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortshiftVulnerabilityScannerBuilder.DescriptorImpl
getDescriptor()
String
getDockerRegistryUsername()
String
getHighestSeverityAllowed()
String
getHighestSeverityAllowedDf()
String
getImageName()
String
getSecretKey()
String
getSecureCnAccessKey()
String
getUrl()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setDockerRegistryPasswordId(String dockerRegistryPasswordId)
void
setHighestSeverityAllowed(String highestSeverityAllowed)
void
setHighestSeverityAllowedDf(String highestSeverityAllowedDf)
void
setImageName(String imageName)
void
setPushLocalImage(Boolean pushLocalImage)
void
setSecureCnAccessKey(String secureCnAccessKey)
void
setSecureCnSecretKeyId(String secureCnSecretKeyId)
void
setUrl(String url)
-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
PLUGIN_NAME
protected static final String PLUGIN_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SECURE_CN_PRODUCTION_URL
protected static final String DEFAULT_SECURE_CN_PRODUCTION_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSecureCnAccessKey
@DataBoundSetter public void setSecureCnAccessKey(String secureCnAccessKey)
-
setSecureCnSecretKeyId
@DataBoundSetter public void setSecureCnSecretKeyId(String secureCnSecretKeyId)
-
setImageName
@DataBoundSetter public void setImageName(String imageName)
-
setUrl
@DataBoundSetter public void setUrl(String url)
-
setDockerRegistryPasswordId
@DataBoundSetter public void setDockerRegistryPasswordId(String dockerRegistryPasswordId)
-
setHighestSeverityAllowed
@DataBoundSetter public void setHighestSeverityAllowed(String highestSeverityAllowed)
-
setHighestSeverityAllowedDf
@DataBoundSetter public void setHighestSeverityAllowedDf(String highestSeverityAllowedDf)
-
setPushLocalImage
@DataBoundSetter public void setPushLocalImage(Boolean pushLocalImage)
-
getSecureCnAccessKey
public String getSecureCnAccessKey()
-
getSecretKey
public String getSecretKey()
-
getImageName
public String getImageName()
-
getUrl
public String getUrl()
-
getHighestSeverityAllowed
public String getHighestSeverityAllowed()
-
getDockerRegistryUsername
public String getDockerRegistryUsername()
-
getHighestSeverityAllowedDf
public String getHighestSeverityAllowedDf()
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws AbortException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
AbortException
-
getDescriptor
public PortshiftVulnerabilityScannerBuilder.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
-