如何修复[ZAP-BootstrapGUI]错误org.zaproxy.zap.GuiBootstrap-ZAP Jenkins作业中不受支持的选项

问题描述

我是ZAP的初学者。在Jenkins Job中配置ZAP时出现错误消息。

[ZAP-BootstrapGUI] ERROR org.zaproxy.zap.GuiBootstrap  - Unsupported option '-daemon -host <IP> -port <port> -config api.key=<api_key> -installdir <Windows_path>.;
java.lang.Exception: Unsupported option '-daemon -host <IP> -port <port> -config api.key=<api_key> -installdir <Windows_path>.;

如何解决上述错误

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

解决方法

您指定的所有选项似乎都作为一个选项传递给ZAP,而ZAP无法理解。您将需要指定它们,以便ZAP将它们视为单独的选项。您可以发布配置的屏幕快照,隐藏任何敏感信息吗?