Hi,I am trying to generate sonarqube report for master branch and feature branch with same sonar project key in same pipeline for python and did generate xml reports for both master and feature branches and ran the analysis,Overall code looks fine with proper analysis but New code is not being populated and new code is not being identified though have verified the sonarscanner workspace with new changes.Can someone please assist here.Below have attached the New code analysis
Thanks in Advance
Hi,
What’s the New Code Definition for the branch you’ve shown? Also, can you provide your analysis log?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
This guide will help you find them.
Ann
Hi @ganncamp I was able to figure out the reson for 0 code coverage on 0 lines of new code seems like it’s because of leak period being set.
For my use case i am running overall code analysis and new code analysis in a single pipeline.Do you have any workaround for setting the leak period to as previous version so that i can keep sonar.projectversion different for overall code analysis and new code analysis ? So that new code can be identified and codecoverage is displayed for new code.
Thanks!
Hi,
There’s no need. Your New Code definition has no impact on your overall values. “Overall” is all of your code and issues.
Does that help?
Ann