Failed to request component-reports

1,288 views
Skip to first unread message

Carlo Bertoldi

unread,
May 31, 2021, 8:47:23 AM5/31/21
to Dependency Check
Hi everybody,

I've configured my Jenkins build as follows:
stage ('OWASP Dependency-Check Vulnerabilities') {
            steps {
                dependencyCheck additionalArguments: '''
                    -o "./"
                    -s "./"
                    -f "ALL"
                    --proxyserver http-proxy.url
                    --proxyport 3128
                    --disableYarnAudit
                    --prettyPrint''', odcInstallation: '6.1.1'

                dependencyCheckPublisher pattern: 'dependency-check-report.xml'
            }
        }

and when running the build the following error occurs:

12:17:52 [DependencyCheck] [ERROR] Failed to request component-reports 
12:17:52 [DependencyCheck] [ERROR] Error generating the report for CI Pipeline » feature/PCCOM-6464-different_payment_invoice_amount #1 [Pipeline] dependencyCheckPublisher 
12:17:52 [DependencyCheck] Collecting Dependency-Check artifact [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (collect) [Pipeline] junit 
12:17:54 Recording test results 
12:17:54 [Checks API] No suitable checks publisher found. [Pipeline] publishCoverage 12:17:54 Publishing Coverage report.... 
12:17:56 A total of 30 reports were found 
12:17:57 [Checks API] No suitable checks publisher found. [Pipeline] recordIssues 

Then the build is marked as failed and the subsequent steps are skipped:
12:17:57 [SpotBugs] Skipping execution of recorder since overall result is 'FAILURE'

Did I make a mistake configuring the build? Am I missing some dependency on my build server?

Any input would be appreciated. Thanks in advance

Carlo

Mohammed Aejazuddin Ahmed

unread,
Aug 23, 2021, 3:04:57 AM8/23/21
to Dependency Check
Hi,
I'm also getting the same error  ERROR [DependencyCheck] Collecting Dependency-Check artifact and build is failing due to that, i cannot give --failOnError false , as well because it is not recognized as a parameter by DependencyCheck arguments.

Regards,
Aejaz

Mohammed Aejazuddin Ahmed

unread,
Aug 23, 2021, 3:06:28 AM8/23/21
to Dependency Check
Correcting the error.
12:16:34 [DependencyCheck] [ERROR] Failed to request component-reports [Pipeline] dependencyCheckPublisher 
12:16:34 [DependencyCheck] Collecting Dependency-Check artifact

Mohammed Aejazuddin Ahmed

unread,
Aug 23, 2021, 4:03:40 AM8/23/21
to Dependency Check
This error is not coming if we give --disableOssIndex true
Reply all
Reply to author
Forward
0 new messages