ZAP与Jenkins错误的集成

时间:2017-06-27 21:37:15

标签: jenkins zap

我正在尝试将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 ]

1 个答案:

答案 0 :(得分:0)

谢谢西蒙。 我能够解决此错误,但我在官方用户组中发布了新的API错误:groups.google.com/forum/#%21forum/zaproxy-jenkins