public class ZAPBuilder
extends hudson.tasks.Builder
Modifier and Type | Class and Description |
---|---|
static class |
ZAPBuilder.ZAPBuilderDescriptorImpl |
Modifier and Type | Field and Description |
---|---|
static ZAPBuilder.ZAPBuilderDescriptorImpl |
DESCRIPTOR |
Constructor and Description |
---|
ZAPBuilder(boolean startZAPFirst,
String zapHost,
String zapPort,
ZAPDriver zaproxy)
The @DataBoundConstructor is a constructor and it's parameter names must match the fields in associated config file "com/github/jenkinsci/zaproxyplugin/ZAPBuilder/config.jelly" and additional can set the parameter values for the global configurations "com/github/jenkinsci/zaproxyplugin/ZAPBuilder/global.jelly".
|
Modifier and Type | Method and Description |
---|---|
static String |
applyMacro(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
String macro)
Replace macro with environment variable if it exists.
|
ZAPBuilder.ZAPBuilderDescriptorImpl |
getDescriptor() |
boolean |
getStartZAPFirst() |
String |
getZapHost() |
String |
getZapPort() |
ZAPDriver |
getZaproxy() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Method called when the build is launching
|
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Method launched before the build.
|
@Extension public static final ZAPBuilder.ZAPBuilderDescriptorImpl DESCRIPTOR
@DataBoundConstructor public ZAPBuilder(boolean startZAPFirst, String zapHost, String zapPort, ZAPDriver zaproxy)
startZAPFirst
- of type boolean: start zap as a pre-build step or not.zapHost
- of type: String: the zap host.zapPort
- of type String: host configured when ZAP is used as proxy.zaproxy
- of type ZAPDriver: port configured when ZAP is used as proxy.public boolean getStartZAPFirst()
public ZAPDriver getZaproxy()
public String getZapHost()
public String getZapPort()
public ZAPBuilder.ZAPBuilderDescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
public boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
prebuild
in interface hudson.tasks.BuildStep
prebuild
in class hudson.tasks.BuildStepCompatibilityLayer
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
public static String applyMacro(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, String macro) throws InterruptedException
build
- listener
- macro
- InterruptedException
Copyright © 2016–2017. All rights reserved.