When I run jenkins script for npm application for two source folders sonar overwriting the report file by latest..need urgent help

when I run jenkins script for npm application for two source folders sonar overwriting the report file by latest…need urgent help

Hey there.

Your post is a bit sparse on details. How do you have your Pipeline configured (screenshots, the code of your pipeline, anything is useful)

folder structure:

coverage
icov.info
projects
project1
src
secure2
src

when run test suit project1 it is executed fine and when project2 is executed it runs fine and project1 info is deleted(think overwriting) and see only project2 info.

Hey there.

It sounds like you should be using different project keys for each SonarQube analysis, or configuring a single SonarQube analysis that covers all folders. Two SonarQube analyses cannot add to eachother.