Advertisement
irobust

jenkins-owasp-zap

Apr 2nd, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. 1. git pull origin master
  2. 2. docker-compose up -d
  3. 3. docker exec jenkins-server cat /var/jenkins_home/secrets/initialAdminPassword
  4. 4. Install suggested plug-ins
  5. 5. create admin user
  6. 6. Install plug-ins
  7. - Official OWASP-ZAP
  8. - Custom Tools
  9. * name = zap
  10. * Install automatically = true
  11. * Download URL for binary archive = https://github.com/zaproxy/zaproxy/releases/download/v2.8.1/ZAP_2.8.1_Linux.tar.gz
  12. * Subdirectory of extracted archive = ZAP_2.8.1
  13.  
  14. 7. Create Freestyle project (owasp-zap-demo)
  15. 8. config github project
  16. https://github.com/eficode/security_testing_demo_app
  17. 9. Source Code Management
  18. Repo URL = https://github.com/eficode/security_testing_demo_app.git
  19. branch = */master
  20. 10. Build
  21. - Execute Shell -> sh ${WORKSPACE}/start.sh
  22. - Execute ZAP
  23. * Host = localhost
  24. * Port = 8090
  25. * Select Custom Tools Installation (name = zap)
  26. * ZAP Home Directory = ~/.ZAP
  27. * Persist Session (Filename = sessionTest)
  28. * Context name = test${BUILD_NUMBER}
  29. * Include in context = \Qhttp://localhost:7272\E.*
  30. * Starting Point = http://localhost:7272
  31. * Spider
  32. * Generate Report (Format: xml + html)
  33. 11. Execute shell
  34. kill `cat server.pid`
  35. 12 Execute shell
  36. rm server.pid
  37. 13 Post Build
  38. reports/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement