Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Note:

The following steps will assume Jenkins is setup as a Master with a Slave on another machine to execute the job's build and run the ZAP security tool.


Create a New Item

  1. Open Jenkins

    e.g. http://127.0.0.1:8080/

  2. New Item

    e.g. http://127.0.0.1:8080/view/All/newJob

    • Name: ZAP_EXAMPLE_JOB
    • Type: Freestyle project
       
  3. OK
     

Create the Workspace

  1. Go to the Job Summary Page

    e.g. http://127.0.0.1:8080/job/ZAP_EXAMPLE_JOB/

  2. Configure

    e.g. http://127.0.0.1:8080/job/ZAP_EXAMPLE_JOB/configure

  3. Restrict where this project can be run (True)

    Name of Slave where ZAP security tool is installed

  4. Save
    .
  5. Build Now

    New Empty workspace will be created on the Slave e.g. C:\Users\<USER_ID>\Jenkins\workspace\ZAP_EXAMPLE_JOB

     

Configure the Job to Execute ZAP

Setup the job to run ZAP security tool with a loaded session.

Configure the Job to Execute ZAP as part of a Selenium Build

Setup the job to run a Selenium step during the executing of the ZAP security tool and persist the session afterwards.

Info: This will allow ZAP security tool to act as an Intercepting Proxy. It will map all of the requests the Selenium script makes to a web app and all of the responses ZAP receives from it.

 


Configure the Job's Post Build Actions

  1. Summary Display [Instructions]

    Info: This plugin allows an easy and fully customized build report display. Useful for it's Post-Build action to Archive the artifacts, thus copying over a generated report and zap logs into the build's directory from the workspace.

     
  2. HTML Publisher [Instructions]

    Info: This plugin publishes HTML reports. Useful for displaying the latest .html or .xhtml report.

     

Save

Congratulations you've successfully setup your first ZAP Jenkins Job.

 


Build Now

Congratulations you should have been able to run your first successful ZAP Jenkins Build.

  • No labels