Sonar scan is not happening for the PR branch

Hi ,

We have PR branch and we are using * Community Edition Version 9.3 (build 51899). while trying to run sonar scan it is not working for PR branch however with the same is working in master.

This is multibranch pipeline and clone behavior is same for both master and PR branch. if we remove Partial Clone Filter then it is working in PR branch but the issue is daily basis we have around 3000 builds and branches so we cant afford the space.so we have to have Partial Clone filter,

we are running this command

sonarqube – -Dsonar.host.url=sonar-host -Dsonar.buildbreaker.alternativeServerUrl=sonar-host -Dsonar.login=**** -DpullRequestId=55503 -Dsonar.pullrequest.id=55503 -Dsonar.pullrequest.key=55503 -Dsonar.pullrequest.branch=pull-requests/55503 -Dsonar.scm.revision=a7b3c12660c52cb9cc2858e098133c74343968c3

i am getting error
File ‘/home/jenkins/workspace/Abc.java’ was detected as changed but without having changed lines

kindly suggest if i can achieve it for PR branch without removing Partial Clone Filter

Hey there.

A full clone is required to collect the blame information and changed lines, as documented here.

Your version is also past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.3 → 9.9.4 → 10.5.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

How with same configration in master is not complaining.
if you see the configuration it is exactly same for both PR and master …in master it is working but in PR branch it will work if we remove Partial Clone Filter “blob:none”.

this is a missmatch…