WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeeded?

Hi I am getting the below error while scanning my project using sonarqube. Kindly Help

ALM used: Github
CI system used: Jenkins
Scanner command used when applicable:

export NVM_DIR="/home/jenkins/.nvm"
                [ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh"  # This loads nvm
                [ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
                nvm install 18.13.0
                nvm use 18.13.0
                npm install --legacy-peer-deps
                npm config set @igt:registry http://systems-nexus.com
                npm install -g sonarqube-scanner@2.9.0
                export CHROME_BIN=/usr/bin/chromium-browser
                npm run test:coverage
                sonar-scanner -Dsonar.branch.name="${GIT_BRANCH}"

Languages of the repository: Angular
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)

added 1004 packages, and audited 1005 packages in 31s 
**09:47:05** 
**09:47:05** 107 packages are looking for funding 
**09:47:05** run `npm fund` for details 
**09:47:05** 
**09:47:05** 18 vulnerabilities (8 moderate, 4 high, 6 critical) 
**09:47:05** 
**09:47:05** To address issues that do not require attention, run: 
**09:47:05** npm audit fix 
**09:47:05** 
**09:47:05** To address all issues (including breaking changes), run: 
**09:47:05** npm audit fix --force 
**09:47:05** 
**09:47:05** Run `npm audit` for details. 
**09:47:05** + npm config set @igt:registry http://systems-nexus.com 
**09:47:05** + npm install -g sonarqube-scanner@2.9.0 
**09:47:12** 
**09:47:12** changed 90 packages, and audited 91 packages in 5s 
**09:47:12** 
**09:47:12** 8 packages are looking for funding 
**09:47:12** run `npm fund` for details 
**09:47:12** 
**09:47:12** found 0 vulnerabilities 
**09:47:12** + export CHROME_BIN=/usr/bin/chromium-browser 
**09:47:12** + npm run test:coverage 
**09:47:12** 
**09:47:12** > bonusing@0.0.0 test:coverage 
**09:47:12** > ng test --browsers=ChromeHeadlessCustom --no-watch --code-coverage 
**09:47:12** 
**09:47:18** - Generating browser application bundles (phase: setup)... 
**09:48:54** ✔ Browser application bundle generation complete. 
**09:48:54** 13 05 2024 21:18:53.052:INFO [karma-server]: Karma v6.4.2 server started at http://localhost:9876/ 
**09:48:54** 13 05 2024 21:18:53.055:INFO [launcher]: Launching browsers ChromeHeadlessCustom with concurrency unlimited 
**09:48:54** 13 05 2024 21:18:53.062:INFO [launcher]: Starting browser ChromeHeadless 
**09:48:54** 13 05 2024 21:18:53.458:ERROR [launcher]: Cannot start ChromeHeadless 
**09:48:54** Can not find the binary /usr/bin/chromium-browser 
**09:48:54** Please set env variable CHROME_BIN 
**09:48:54** 13 05 2024 21:18:53.459:ERROR [launcher]: ChromeHeadless stdout: 
**09:48:54** 13 05 2024 21:18:53.459:ERROR [launcher]: ChromeHeadless stderr: 
**09:49:04** ✔ Browser application bundle generation complete. 
**09:49:04** ✔ Browser application bundle generation complete. [Pipeline] } 
**09:49:06** **WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeeded?** [Pipeline] // withSonarQubeEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Quality Gate) Stage "Quality Gate" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage

Hi,

We seem to be entirely missing the sonar-scanner logs here. Are you sure analysis actually runs?

 
Ann

The logs are huge cant save here

Yes analysis runs

Hi,

Without logs, I can’t help you.

 
Ann

deleted

Hi,

I’ve formatted your logs for you so they’re readable. Once I did, I found that there are still no analysis logs here. Again:

 
Ann