ZAP 与 Jenkins 错误的集成
Posted
技术标签:
【中文标题】ZAP 与 Jenkins 错误的集成【英文标题】:Integration of ZAP with Jenkins error 【发布时间】:2017-12-01 02:26:23 【问题描述】:我正在尝试将 ZAP 与 Jenkins 集成,但出现以下错误
我跟着https://wiki.jenkins.io/display/JENKINS/Execute+ZAP配置了zap。
Building in workspace C:\Program Files (x86)\Jenkins\workspace\demo
[ZAP Jenkins Plugin] START PRE-BUILD ENVIRONMENT VARIABLE REPLACEMENT
HOST = [ 127.0.0.1 ]
PORT = [ 8090 ]
ZAP SETTINGS DIRECTORY = [ C:\Users\user\OWASP ZAP ]
SESSION FILENAME = [ ]
INTERNAL SITES = [ ]
CONTEXT NAME = [ Test 114 ]
INCLUDE IN CONTEXT = [ http://abc ]
EXCLUDE FROM CONTEXT = [ ]
STARTING POINT (URL) = [ http://abc ]
REPORT FILENAME = [ JENKINS_ZAP_VULNERABILITY_REPORT ]
REPORT TITLE = [ ]
COMMAND LINE =
OPTION : [ -installdir ]
VALUE : [ %ZAPROXY_HOME% ]
[ZAP Jenkins Plugin] END PRE-BUILD ENVIRONMENT VARIABLE REPLACEMENT
[ZAP Jenkins Plugin] CLEAR LOGS IN SETTINGS...
SETTINGS DIR [ C:\Users\user\OWASP ZAP ]
WORKSPACE [ C:\Program Files (x86)\Jenkins\workspace\demo ]
CLEARING SETTINGS/LOGS
[ZAP Jenkins Plugin] START BUILD STEP
[ZAP Jenkins Plugin] PLUGIN VALIDATION (PLG), VARIABLE VALIDATION AND
ENVIRONMENT INJECTOR EXPANSION (EXP)
ERROR: java.lang.IllegalArgumentException: ZAP PATH IS MISSING, PROVIDED [
null ]
【问题讨论】:
您安装了 Zaproxy 吗?您提供的文档甚至指定了如何安装它(安装方法)。 对于 ZAP Jenkins 插件的任何问题,我建议使用官方用户组:groups.google.com/forum/#%21forum/zaproxy-jenkins - 插件维护者不监控 *** 【参考方案1】:谢谢西蒙。 我能够摆脱这个错误,但我得到了我在官方用户组上发布的新 API 错误:groups.google.com/forum/#%21forum/zaproxy-jenkins
【讨论】:
以上是关于ZAP 与 Jenkins 错误的集成的主要内容,如果未能解决你的问题,请参考以下文章