Package io.jenkins.plugins.cyberchief
Class CyberChiefScanBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.cyberchief.CyberChiefScanBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class CyberChiefScanBuilder extends Builder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CyberChiefScanBuilder.DescriptorImpl
-
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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApiName()
String
getApiUrl()
Secret
getAuthToken()
boolean
getFailOnHighMediumVulns()
boolean
getFailOnHighVulns()
String[]
getFrameworks()
String
getRaiderName()
String[]
getRegions()
String
getScanType()
String[]
getServices()
String
getTestScope()
void
perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
void
setApiName(String apiName)
void
setApiUrl(String apiUrl)
void
setAuthToken(Secret authToken)
void
setFailOnHighMediumVulns(boolean failOnHighMediumVulns)
void
setFailOnHighVulns(boolean failOnHighVulns)
void
setFrameworks(String[] frameworks)
void
setRaiderName(String raiderName)
void
setRegions(String[] regions)
void
setScanType(String scanType)
void
setServices(String[] services)
void
setTestScope(String testScope)
void
waitForApiRequestCompletion(CyberChiefScanAction cyberChiefScanAction, Secret authToken, boolean requestComplete, boolean failOnHighVulns, boolean failOnHighMediumVulns, TaskListener listener)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, 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
-
-
-
-
Method Detail
-
getAuthToken
public Secret getAuthToken()
-
getApiUrl
public String getApiUrl()
-
getApiName
public String getApiName()
-
getRaiderName
public String getRaiderName()
-
getRegions
public String[] getRegions()
-
getFrameworks
public String[] getFrameworks()
-
getServices
public String[] getServices()
-
getScanType
public String getScanType()
-
getTestScope
public String getTestScope()
-
getFailOnHighVulns
public boolean getFailOnHighVulns()
-
getFailOnHighMediumVulns
public boolean getFailOnHighMediumVulns()
-
setAuthToken
@DataBoundSetter public void setAuthToken(Secret authToken)
-
setScanType
@DataBoundSetter public void setScanType(String scanType)
-
setApiName
@DataBoundSetter public void setApiName(String apiName)
-
setRaiderName
@DataBoundSetter public void setRaiderName(String raiderName)
-
setRegions
@DataBoundSetter public void setRegions(String[] regions)
-
setFrameworks
@DataBoundSetter public void setFrameworks(String[] frameworks)
-
setServices
@DataBoundSetter public void setServices(String[] services)
-
setTestScope
@DataBoundSetter public void setTestScope(String testScope)
-
setApiUrl
@DataBoundSetter public void setApiUrl(String apiUrl)
-
setFailOnHighVulns
@DataBoundSetter public void setFailOnHighVulns(boolean failOnHighVulns)
-
setFailOnHighMediumVulns
@DataBoundSetter public void setFailOnHighMediumVulns(boolean failOnHighMediumVulns)
-
waitForApiRequestCompletion
public void waitForApiRequestCompletion(CyberChiefScanAction cyberChiefScanAction, Secret authToken, boolean requestComplete, boolean failOnHighVulns, boolean failOnHighMediumVulns, TaskListener listener) throws InterruptedException
- Throws:
InterruptedException
-
perform
public void perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
-