public class ZAProxy extends hudson.model.AbstractDescribableImpl<ZAProxy> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ZAProxy.ZAProxyDescriptorImpl
Descriptor for
ZAProxy. |
| Modifier and Type | Field and Description |
|---|---|
static String |
CMD_LINE_DAEMON |
static String |
CMD_LINE_DIR |
static String |
CMD_LINE_HOST |
static String |
CMD_LINE_PORT |
static String |
FILE_POLICY_EXTENSION |
static String |
FILE_SESSION_EXTENSION |
static String |
NAME_POLICIES_DIR_ZAP |
| Constructor and Description |
|---|
ZAProxy(boolean autoInstall,
String toolUsed,
String zapHome,
int timeoutInSec,
String filenameLoadSession,
String targetURL,
boolean spiderURL,
boolean scanURL,
boolean saveReports,
List<String> chosenFormats,
String filenameReports,
boolean saveSession,
String filenameSaveSession,
String zapDefaultDir,
String chosenPolicy,
List<ZAPcmdLine> cmdLinesZAP,
String jdk) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
executeZAP(hudson.FilePath workspace,
hudson.model.BuildListener listener)
Execute ZAProxy method following build's setup and stop ZAP at the end.
|
boolean |
getAutoInstall() |
List<String> |
getChosenFormats() |
String |
getChosenPolicy() |
List<ZAPcmdLine> |
getCmdLinesZAP() |
ZAProxy.ZAProxyDescriptorImpl |
getDescriptor() |
String |
getFilenameLoadSession() |
String |
getFilenameReports() |
String |
getFilenameSaveSession() |
String |
getJdk() |
hudson.model.JDK |
getJDK()
Gets the JDK that this Sonar builder is configured with, or null.
|
boolean |
getSaveReports() |
boolean |
getSaveSession() |
boolean |
getScanURL() |
boolean |
getSpiderURL() |
String |
getTargetURL() |
int |
getTimeoutInSec() |
String |
getToolUsed() |
String |
getZapDefaultDir() |
String |
getZapHome() |
void |
setZapProxyHost(String zapProxyHost) |
void |
setZapProxyPort(int zapProxyPort) |
void |
startZAP(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
hudson.Launcher launcher)
Start ZAProxy using command line.
|
String |
toString() |
public static final String FILE_POLICY_EXTENSION
public static final String FILE_SESSION_EXTENSION
public static final String NAME_POLICIES_DIR_ZAP
public static final String CMD_LINE_DIR
public static final String CMD_LINE_HOST
public static final String CMD_LINE_PORT
public static final String CMD_LINE_DAEMON
@DataBoundConstructor
public ZAProxy(boolean autoInstall,
String toolUsed,
String zapHome,
int timeoutInSec,
String filenameLoadSession,
String targetURL,
boolean spiderURL,
boolean scanURL,
boolean saveReports,
List<String> chosenFormats,
String filenameReports,
boolean saveSession,
String filenameSaveSession,
String zapDefaultDir,
String chosenPolicy,
List<ZAPcmdLine> cmdLinesZAP,
String jdk)
public ZAProxy.ZAProxyDescriptorImpl getDescriptor()
public boolean getAutoInstall()
public String getToolUsed()
public String getZapHome()
public int getTimeoutInSec()
public String getFilenameLoadSession()
public String getTargetURL()
public boolean getSpiderURL()
public boolean getScanURL()
public boolean getSaveReports()
public String getFilenameReports()
public boolean getSaveSession()
public String getFilenameSaveSession()
public String getZapDefaultDir()
public String getChosenPolicy()
public void setZapProxyHost(String zapProxyHost)
public void setZapProxyPort(int zapProxyPort)
public List<ZAPcmdLine> getCmdLinesZAP()
public hudson.model.JDK getJDK()
public String getJdk()
public void startZAP(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
hudson.Launcher launcher)
throws IllegalArgumentException,
IOException,
InterruptedException
FilePath object and Launcher object.build - listener - the listener to display log during the job execution in jenkinslauncher - the object to launch a process locally or remotelyInterruptedExceptionIOExceptionIllegalArgumentExceptionpublic boolean executeZAP(hudson.FilePath workspace,
hudson.model.BuildListener listener)
workspace - a FilePath representing the build's workspacelistener - the listener to display log during the job execution in jenkinsCopyright © 2004-2015. All Rights Reserved.