Package com.breachlock.controllers
Class DASTScan
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.breachlock.controllers.DASTScan
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class DASTScan extends Builder implements SimpleBuildStep
- Author:
- mitchel.k@breachlock.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DASTScan.DescriptorImpl
Form descriptor used for form handling.-
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
-
-
Constructor Summary
Constructors Constructor Description DASTScan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApikey()
Return the encrypted secret API key.String
getAsset()
Return asset.DASTScan.DescriptorImpl
getDescriptor()
String
getEmail()
Return the email.void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setApikey(Secret apikey)
Set the encrypted API key.void
setAsset(String asset)
Set the asset to scan.This is required for functioning of the formvoid
setEmail(String email)
Set the email.This is required for functioning of the form-
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
-
-
-
-
Method Detail
-
getDescriptor
public DASTScan.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getAsset
public String getAsset()
Return asset. This is required for functioning of the form- Returns:
- asset Asset to scan
-
setAsset
@DataBoundSetter public void setAsset(String asset)
Set the asset to scan.This is required for functioning of the form- Parameters:
asset
- Asset to scan
-
getEmail
public String getEmail()
Return the email. This is required for functioning of the form- Returns:
- email Email used for app.breachlock.co
-
setEmail
@DataBoundSetter public void setEmail(String email)
Set the email.This is required for functioning of the form- Parameters:
email
- Email used for app.breachlock.co
-
getApikey
public String getApikey()
Return the encrypted secret API key. This is required for functioning of the form- Returns:
- apiKey Jenkins integration API key
-
setApikey
@DataBoundSetter public void setApikey(Secret apikey)
Set the encrypted API key.- Parameters:
apikey
- Jenkins integration API key
-
-