public class RunZapAttackStep
extends org.jenkinsci.plugins.workflow.steps.Step
| Modifier and Type | Class and Description |
|---|---|
static class |
RunZapAttackStep.DescriptorImpl |
| Constructor and Description |
|---|
RunZapAttackStep(String scanPolicyName,
int userId)
For zapAttack() function in Jenkinsfile
|
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.workflow.steps.StepExecution |
start(org.jenkinsci.plugins.workflow.steps.StepContext context) |
@DataBoundConstructor public RunZapAttackStep(String scanPolicyName, int userId)
scanPolicyName - The scan policy name to use when attacking (optional). Make sure to load the policy from a file first
using loadScanPolicy()userId - The ZAP user ID to run the attack with, loaded from the context (optional)public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context)
throws IOException,
InterruptedException
start in class org.jenkinsci.plugins.workflow.steps.StepIOExceptionInterruptedExceptionCopyright © 2016–2018. All rights reserved.