51Testing软件测试论坛

标题: Jenkins+zap进行构建扫描的时候报错 [打印本页]

作者: dlwxh55    时间: 2019-3-1 17:51
标题: Jenkins+zap进行构建扫描的时候报错
本帖最后由 dlwxh55 于 2019-3-1 17:52 编辑

在尝试进行Jenkins+zap的实施,但是在设置了ZAPROXY_HOME的环境变量后,进行构建扫描时报错如下:
[ZAP Jenkins Plugin] START BUILD STEP

[ZAP Jenkins Plugin] PLUGIN VALIDATION (PLG), VARIABLE VALIDATION AND ENVIRONMENT INJECTOR EXPANSION (EXP)
ERROR: java.lang.IllegalArgumentException: ZAP INSTALLATION DIRECTORY IS MISSING, PROVIDED [ null ]        

at org.jenkinsci.plugins.zap.ZAPDriver.checkParams(ZAPDriver.java:510)      

at org.jenkinsci.plugins.zap.ZAPDriver.startZAP(ZAPDriver.java:610)        

at org.jenkinsci.plugins.zap.ZAPBuilder.perform(ZAPBuilder.java:277)        

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)      

at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)      

at hudson.model.Build$BuildExecution.build(Build.java:206)        

at hudson.model.Build$BuildExecution.doRun(Build.java:163)        

at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)      

at hudson.model.Run.execute(Run.java:1816)      

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)      

at hudson.model.ResourceController.execute(ResourceController.java:97)        

at hudson.model.Executor.run(Executor.java:429)

请求大家的帮助,谢谢。






欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2