-
Bug
-
Resolution: Fixed
-
Major
-
None
-
OWASP Dependency-Check
Version5.4.1
Dependency Check 8.4.0 (previosly 7.3.0 was not working either)
Jenkins 2.401.2
java 17.0.4, centos
-
-
5.4.3
When executing owasp depedency check job on jenkins, it started failing after upgrading OWASP Depepdnecy-Check plugin.
It java method Versioin.parse is throwing exceptioin. I've noticed that that check was added in the latest release.
java.lang.IllegalArgumentException: Invalid version string: '8.4.0'
Here's the log output:
6:44:47 [INFO] Checking for updates*16:44:47* [INFO] Skipping NVD check since last check was within 4 hours.16:44:47 [INFO] Skipping RetireJS update since last update was within 24 hours.16:44:47 [INFO] Skipping Hosted Suppressions file update since last update was within 2 hours.16:44:47 [INFO] Skipping Known Exploited Vulnerabilities update check since last check was within 24 hours.16:44:47 [INFO] Check for updates complete (15 ms)16:44:48 [INFO] 16:44:48 16:44:48 Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the user's risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.16:44:48 16:44:48 16:44:48 About ODC:
https://jeremylong.github.io/DependencyCheck/general/internals.html
16:44:48 False Positives:
https://jeremylong.github.io/DependencyCheck/general/suppression.html
16:44:48 16:44:48 💖 Sponsor:
https://github.com/sponsors/jeremylong
16:44:48 16:44:48 16:44:48 [INFO] Analysis Started*16:45:56* [INFO] Finished Archive Analyzer (68 seconds)16:45:56 [INFO] Finished File Name Analyzer (0 seconds)16:46:17 [INFO] Finished Jar Analyzer (20 seconds)16:46:18 [INFO] Finished Central Analyzer (1 seconds)16:46:18 [ERROR] ----------------------------------------------------16:46:18 [ERROR] .NET Assembly Analyzer could not be initialized and at least one 'exe' or 'dll' was scanned. The 'dotnet' executable could not be found on the path; either disable the Assembly Analyzer or add the path to dotnet core in the configuration.16:46:18 [ERROR] The dotnet 6.0 core runtime or SDK is required to analyze assemblies*16:46:18* [ERROR] ----------------------------------------------------16:46:21 [INFO] Finished Dependency Merging Analyzer (3 seconds)16:46:22 [INFO] Finished Hint Analyzer (1 seconds)16:46:22 [INFO] Finished Version Filter Analyzer (0 seconds)16:46:26 [INFO] Created CPE Index (4 seconds)16:47:06 [INFO] Finished CPE Analyzer (44 seconds)16:47:07 [INFO] Finished False Positive Analyzer (0 seconds)16:47:07 [INFO] Finished NVD CVE Analyzer (0 seconds)16:47:14 [INFO] Finished RetireJS Analyzer (7 seconds)16:47:16 [INFO] Finished Sonatype OSS Index Analyzer (1 seconds)16:47:17 [INFO] Finished Vulnerability Suppression Analyzer (0 seconds)16:47:17 [INFO] Finished Known Exploited Vulnerability Analyzer (0 seconds)16:47:29 [INFO] Finished Dependency Bundling Analyzer (12 seconds)16:47:29 [INFO] Finished Unused Suppression Rule Analyzer (0 seconds)16:47:35 [INFO] Analysis Complete (167 seconds)16:47:35 [INFO] Writing report to: /opt/jenkins/workspace/dependency-check-rmhl-services/./dependency-check-report.xml*16:47:39* ERROR: Build step failed with exception*16:47:39* java.lang.IllegalArgumentException: Invalid version string: '8.4.0'16:47:39 at java.base/java.lang.Runtime$Version.parse(Runtime.java:1024)16:47:39 at org.jenkinsci.plugins.DependencyCheck.DependencyCheckToolBuilder.isSuccess(DependencyCheckToolBuilder.java:180)16:47:39 at org.jenkinsci.plugins.DependencyCheck.DependencyCheckToolBuilder.perform(DependencyCheckToolBuilder.java:165)16:47:39 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)16:47:39 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)16:47:39 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)16:47:39 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:944)16:47:39 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:894)16:47:39 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)16:47:39 at hudson.model.Run.execute(Run.java:1900)16:47:39 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)16:47:39 at hudson.model.ResourceController.execute(ResourceController.java:101)16:47:39 at hudson.model.Executor.run(Executor.java:442)16:47:39 Build step 'Invoke Dependency-Check' marked build as failure*16:47:40* Collecting Dependency-Check artifact*16:47:40* Parsing file opt/jenkins/workspace/dependency-check-rmhl-services/dependency-check-report.xml*16:47:41* Finished: FAILURE
- is duplicated by
-
JENKINS-71945 Dependency-Check with a Version-Number x.x.0 is not allowed
- Closed