Hi Anyone,
The jenkins server failed to finish the build because dependency check not get passed. Did anyone know the solution? Below is the log
NodeAuditAnalyzer failed on /var/lib/jenkins/workspace/XXX-DEPLOY-XXX-WEB/package-lock.json
[WARN] An error occurred while analyzing ‘/var/lib/jenkins/workspace/XXX-DEPLOY-XXX-WEB/package-lock.json’ (Node Audit Analyzer).
[INFO] Finished Node Audit Analyzer (1 seconds)
[INFO] Finished RetireJS Analyzer (1 seconds)
[WARN] Unable to determine Package-URL identifiers for 411 dependencies
[INFO] Finished Sonatype OSS Index Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (7 seconds)
[INFO] Writing report to: /var/lib/jenkins/workspace/XXX-DEPLOY-XXX-WEB/.dependency-check/dependency-check-report.json
[INFO] Writing report to: /var/lib/jenkins/workspace/XXX-DEPLOY-XXX-WEB/.dependency-check/dependency-check-report.html
[ERROR] Could not perform Node Audit analysis. Invalid payload submitted to Node Audit API.
Build step ‘Execute shell’ marked build as failure