Installer "Extract *.zip/*.tar.gz" cannot be used to install "ZAP" on the node "Jenkins"

4,313 views
Skip to first unread message

Narendra G

unread,
Dec 21, 2017, 1:38:17 AM12/21/17
to ZAP Jenkins Plugin
[CustomTools] - ZAP: Starting installation
Installer "Extract *.zip/*.tar.gz" cannot be used to install "ZAP" on the node "Jenkins"
[CustomTools] - ZAP: Tool is installed at /
[CustomTools] - ZAP: Setting ZAP_HOME=/
Building in workspace /var/jenkins_home/workspace/zap_test1

[ZAP Jenkins Plugin] START PRE-BUILD ENVIRONMENT VARIABLE REPLACEMENT
	HOST = [ localhost ]
	PORT = [ 9999 ]

	SESSION FILENAME = [ website ]
	INTERNAL SITES = [  ]

	CONTEXT NAME = [ zap ]

	INCLUDE IN CONTEXT = [ https://.* ]

	EXCLUDE FROM CONTEXT = [  ]

	STARTING POINT (URL) = [ https://*.com ]
	REPORT FILENAME = [ JENKINS_ZAP_VULNERABILITY_REPORT ]
	REPORT TITLE = [  ]

	COMMAND LINE = 

[ZAP Jenkins Plugin] END PRE-BUILD ENVIRONMENT VARIABLE REPLACEMENT

[ZAP Jenkins Plugin] CLEAR LOGS IN SETTINGS...
	ZAP HOME DIRECTORY [ zap_test1 ]
	JENKINS WORKSPACE [ /var/jenkins_home/workspace/zap_test1 ]
	CLEARING ZAP HOME DIRECTORY/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 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:779)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1720)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)

Build step 'Execute ZAP' marked build as failure
Finished: FAILURE

thc...@gmail.com

unread,
Dec 22, 2017, 8:58:18 AM12/22/17
to zaproxy...@googlegroups.com
Hi.

Which URL are you using in the custom tool?

Best regards.

Narendra G

unread,
Dec 23, 2017, 2:17:00 AM12/23/17
to ZAP Jenkins Plugin

Narendra G

unread,
Jan 2, 2018, 10:42:31 PM1/2/18
to ZAP Jenkins Plugin
Issue observed in Mac, Linux but works fine in Windows.

~Narendra


On Thursday, 21 December 2017 12:08:17 UTC+5:30, Narendra G wrote:

Narendra G

unread,
Jan 3, 2018, 1:32:15 AM1/3/18
to ZAP Jenkins Plugin
I got the issue solved for Mac, Linux by keeping the label field empty in Global custom tools configuration.

Thanks,
Narendra

On Thursday, 21 December 2017 12:08:17 UTC+5:30, Narendra G wrote:

thc...@gmail.com

unread,
Jan 3, 2018, 6:57:55 AM1/3/18
to zaproxy...@googlegroups.com
Great, thanks for letting us know!

Best regards.

Sajan Jacob K

unread,
Apr 18, 2018, 8:44:05 AM4/18/18
to ZAP Jenkins Plugin
Thansk, it helped me too
Reply all
Reply to author
Forward
0 new messages