I am facing this problem i have inegrated ZAProxy pulgin into jenkins but facing this error
Build succeeded.
"D:\Unicentric\TestingBuild\CI_Build\LCM\UnicentricMaster.sln" (default target) (1) ->
"D:\Unicentric\TestingBuild\CI_Build\LCM\Core\Unicentric.vbproj" (default target) (2) ->
(ResolveAssemblyReferences target) ->
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "SharedCache.WinServiceCommon". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\Unicentric\TestingBuild\CI_Build\LCM\Core\Unicentric.vbproj]
"D:\Unicentric\TestingBuild\CI_Build\LCM\UnicentricMaster.sln" (default target) (1) ->
"D:\Unicentric\TestingBuild\CI_Build\LCM\wwwroot\UnicentricWeb.vbproj" (default target) (6) ->
"D:\Unicentric\TestingBuild\CI_Build\LCM\PenAndPaper\Unicentric.PenAndPaper.vbproj" (default target) (8) ->
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "VisImage.Barcode Class Library, Version=1.0.0.1, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\Unicentric\TestingBuild\CI_Build\LCM\PenAndPaper\Unicentric.PenAndPaper.vbproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "VisImage.NET Class Library, Version=1.0.0.1, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\Unicentric\TestingBuild\CI_Build\LCM\PenAndPaper\Unicentric.PenAndPaper.vbproj]
3 Warning(s)
0 Error(s)
Time Elapsed 00:00:14.38
Perform ZAProxy
zapProgram = C:\Program Files\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\ZAProxy_2.4.3\ZAP_2.4.3
targetURL = http://192.168.9.230/LCMGitCode/Login/Index
zapProxyHost = localhost
zapProxyPort = 8090
jiraBaseURL =
jiraUserName =
jiraUserName =
Start ZAProxy [C:\Program Files\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\ZAProxy_2.4.3\ZAP_2.4.3\zap.bat]
[ZAP_2.4.3] $ "C:\Program Files\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\ZAProxy_2.4.3\ZAP_2.4.3\zap.bat" -daemon -host localhost -port 8090 -config api.key=ZAPROXY-PLUGIN -config scanner.defaultPolicy=OnlySQLInjection -dir /home/ludovicroucoux/.ZAP
Skip loadSession
URL http://192.168.9.230/LCMGitCode/Login/Index added to Context [window.location.replace('/login?from=%2Fxml%2Fcontext%2Faction%2FnewContext%2F%3FcontextName%3Dcontext1%26apikey%3DZAPROXY-PLUGIN%26');
Authentication required
]
SCANMOD : AUTHENTICATED
Setting up Authentication
Form Based Authentication added to context
Logged in indicator <div style="margin-right: 10px;" class="dash-welcome right"> Welcome <span class="username">demo</span> </div> added to context
New user added. username :demo
User : demo is now Enabled
Spider the site [http://192.168.9.230/LCMGitCode/Login/Index] as user [demo]
ERROR: java.lang.NumberFormatException: For input string: "window.location.replace('/login?from=%2Fxml%2Fspider%2Fview%2Fstatus%2F%3FscanId%3D%26');
Authentication required
"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at fr.novia.zaproxyplugin.ZAProxy.statusToInt(ZAProxy.java:1270)
at fr.novia.zaproxyplugin.ZAProxy.spiderURLAsUser(ZAProxy.java:1540)
at fr.novia.zaproxyplugin.ZAProxy.executeZAP(ZAProxy.java:1118)
at fr.novia.zaproxyplugin.ZAProxyBuilder$ZAProxyCallable.invoke(ZAProxyBuilder.java:393)
at fr.novia.zaproxyplugin.ZAProxyBuilder$ZAProxyCallable.invoke(ZAProxyBuilder.java:379)
at hudson.FilePath.act(FilePath.java:990)
at hudson.FilePath.act(FilePath.java:968)
at fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:205)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
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:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Shutdown ZAProxy
Build step 'Execute ZAProxy' marked build as failure
C:\Program Files\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\ZAProxy_2.4.3\ZAP_2.4.3>if exist "\OWASP ZAP\.ZAP_JVM.properties" (set /p jvmopts= 0<"\OWASP ZAP\.ZAP_JVM.properties" ) else (set jvmopts=-Xmx512m )
C:\Program Files\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\ZAProxy_2.4.3\ZAP_2.4.3>java -Xmx512m -jar zap-2.4.3.jar -daemon -host localhost -port 8090 -config api.key=ZAPROXY-PLUGIN -config scanner.defaultPolicy=OnlySQLInjection -dir /home/ludovicroucoux/.ZAP
Finished: FAILURE