when I run jenkins script for npm application for two source folders sonar overwriting the report file by latest…need urgent help
Your post is a bit sparse on details. How do you have your Pipeline configured (screenshots, the code of your pipeline, anything is useful)
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.
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.