org.jenkinsci.plugins.zapper
Class ZapRunner

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by org.jenkinsci.plugins.zapper.ZapRunner
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class ZapRunner
extends hudson.tasks.Builder

The Zapper plugin helps to run OWASP ZAP as part of your automated security assessment regime in the Jenkins continuous integration system. The plugin can use a pre-installed version of ZAP when given the path to the ZAP installation. Alternatively, it can automatically download and build a version of ZAP to be used by your security tests.

Author:
Adedayo Adetoye

Nested Class Summary
static class ZapRunner.ZapRunnerDescriptor
          Descriptor for ZapRunner.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static String AUTO
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ZapRunner(String host, ZapInstallDescription zapInstallDescription)
           
 
Method Summary
 ZapRunner.ZapRunnerDescriptor getDescriptor()
           
 String getHost()
           
 ZapInstallDescription getZapInstallDescription()
           
 String getZapInstallType()
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO

public static final String AUTO
See Also:
Constant Field Values
Constructor Detail

ZapRunner

@DataBoundConstructor
public ZapRunner(String host,
                                      ZapInstallDescription zapInstallDescription)
Method Detail

getHost

public String getHost()

getZapInstallType

public String getZapInstallType()

getZapInstallDescription

public ZapInstallDescription getZapInstallDescription()

perform

public boolean perform(hudson.model.AbstractBuild build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws IOException,
                       InterruptedException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
IOException
InterruptedException

getDescriptor

public ZapRunner.ZapRunnerDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder


Copyright © 2004-2014. All Rights Reserved.