Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71851

Dependency-check 5.4.1 fails with NPE when installer is of type folder

XMLWordPrintable

    • 5.4.2

      Build fails after updating from plugin 5.4.0 to  5.4.1.  Console output below:

      Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
      [INFO] Checking for updates
      [INFO] Download Started for NVD CVE - Modified
      [INFO] Download Complete for NVD CVE - Modified  (861 ms)
      [INFO] Processing Started for NVD CVE - Modified
      [INFO] Processing Complete for NVD CVE - Modified  (3788 ms)
      [INFO] Begin database maintenance
      [INFO] Updated the CPE ecosystem on 128981 NVD records
      [INFO] Cleaned up 3 orphaned NVD records
      [INFO] End database maintenance (14866 ms)
      [INFO] Begin database defrag
      [INFO] End database defrag (5792 ms)
      [INFO] Check for updates complete (30394 ms)
      [INFO] 
      
      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.
      
      
         About ODC: https://jeremylong.github.io/DependencyCheck/general/internals.html
         False Positives: https://jeremylong.github.io/DependencyCheck/general/suppression.html
      
      💖 Sponsor: https://github.com/sponsors/jeremylong
      
      
      [INFO] Analysis Started
      [INFO] Finished Archive Analyzer (1 seconds)
      [INFO] Finished File Name Analyzer (0 seconds)
      [INFO] Finished Jar Analyzer (0 seconds)
      [INFO] Finished Central Analyzer (0 seconds)
      [INFO] Finished Dependency Merging Analyzer (0 seconds)
      [INFO] Finished Version Filter Analyzer (0 seconds)
      [INFO] Finished Hint Analyzer (0 seconds)
      [INFO] Created CPE Index (1 seconds)
      [INFO] Finished CPE Analyzer (4 seconds)
      [INFO] Finished False Positive Analyzer (0 seconds)
      [INFO] Finished NVD CVE Analyzer (0 seconds)
      00:00  INFO: Vulnerability found: bootstrap below 3.999.999
      00:00  INFO: Vulnerability found: bootstrap below 3.999.999
      [INFO] Finished RetireJS Analyzer (2 seconds)
      [INFO] Finished Sonatype OSS Index Analyzer (1 seconds)
      [INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
      [INFO] Finished Dependency Bundling Analyzer (0 seconds)
      [INFO] Analysis Complete (12 seconds)
      [INFO] Writing report to: [redacted]\dependency-check-report.xml
      Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.DependencyCheck.DependencyCheckToolBuilder.isSuccess(DependencyCheckToolBuilder.java:178)
      	at org.jenkinsci.plugins.DependencyCheck.DependencyCheckToolBuilder.perform(DependencyCheckToolBuilder.java:165)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
      	at hudson.model.Build$BuildExecution.build(Build.java:199)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
      	at hudson.model.Run.execute(Run.java:1895)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      Build step 'Invoke Dependency-Check' marked build as failure
      Collecting Dependency-Check artifact
      Parsing file [redacted]\dependency-check-report.xml
      Recording test results
      [Checks API] No suitable checks publisher found.
      Sending e-mails to: [redacted]
      Finished: FAILURE
      

      If I revert back to plugin 5.4.0 the error goes away, although I still see the "checks API" message:

      Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
      Collecting Dependency-Check artifact
      Parsing file [redacted]\dependency-check-report.xml
      Recording test results
      [Checks API] No suitable checks publisher found.
      Sending e-mails to: [redacted]
      Finished: SUCCESS
      

      My ODC installation is a (manually installed) instance of 7.4.4.

            nfalco Nikolas Falco
            lordofthemoon Raj Bhaskar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: