Lcov file not found

We have the following stage:

qualitygate = waitForQualityGate()
if (qualitygate.status != "OK") {
    // ...
}

Until recently this worked. To the best of my knowledge and understanding - nothing has changed. However, this now fails because no coverage data is found.

I see this in the log:

16:04:16.118 WARN: No coverage information will be saved because LCOV file cannot be found.
16:04:16.118 WARN: Provided LCOV file path: artifacts/coverage/lcov.info. Seek file with path: /home/jenkins/workspace/Appbase_PR-275/artifacts/coverage/lcov.info
16:04:16.118 WARN: No coverage information will be saved because all LCOV files cannot be found.

In the sonar properties file I also specify the same path:

sonar.javascript.lcov.reportPaths=artifacts/coverage/lcov.info

And I verified the file does get generated there when running tests locally.
Why is sonar complaining that it can’t find it?

Human error.

Hi,
i am also facing same issue… could u please tell me what is the solution.?

Thanks

I’m having the same error, which was your mistake?

Hi, Same issues i am getting, can please help me