Empty result for new codes trigger by PR

  • SonarScanner 4.5.0.2216 Java 11.0.9.1 AdoptOpenJDK (64-bit) Mac OS X 10.15.7 x86_64
  • I trigger the sonar-scan job by PR create and update. The logs looked good, But I could not get the correct result. Here are the logs.
sonar-scanner -Dsonar.pullrequest.key=1966 -Dsonar.pullrequest.branch=refactor/test_sonar_cloud -Dsonar.pullrequest.base=in-sprint-7.1.0105 -X
...
07:27:39.589 INFO: Pull request 1966 for merge into in-sprint-7.1.0105 from refactor/test_sonar_cloud
...
07:27:39.608 INFO: SCM collecting changed files in the branch
...
07:27:43.927 DEBUG: SCM reported changed lines for 0 files in the branch

But when I run the same cmd on my own mac. It works. I want to know the difference between SCM work when I run the command on the local machine and when I run it on the remote machine.
Now that sonarcloud already knows that my mergebranch and base branch, also have the permission of my bitbucket,why doesn’t it know the changed files?