How to activate SCM provider for TFS and Git

Here is my sonar tools versions

  • Sonar version 7.9.1 (build 27448)
  • SonarScanner for MSBuild 4.3.1
  • Our projects are in .Net Framework and .Net Core
  • We use TFS and Git for projects.

I want to integrate SCM plugin for automatic issue assigment for both of tfs and git. I have completed all suggestions but it is not working.
Here is my Jenkinsfile step for git project.

stage('Code Analysis') {
            steps {
                withSonarQubeEnv('InterSonar') {
                    sh 'unset http_proxy; ./dotnet-sonarscanner begin /k:Demo /n:Demo /v:$BUILD_NUMBER '+
                    '/ '+
                    '/d:sonar.login=### '+
                    '/d:sonar.exclusions=**/*Test.cs,*Test.cs '+
                    '/d:sonar.cs.opencover.reportsPaths=./test-coverage-results/test/*.xml '+
                    '/d:sonar.cs.xunit.reportsPaths=./**/TestResults.xml '+
                    '/d:sonar.scm.enabled=true '+
                    '/d:sonar.scm.provider=git '
    	           sh 'dotnet build'
    		   sh 'unset http_proxy; ./dotnet-sonarscanner end /d:sonar.login=##'

and in tfs project I use the sonarproperties file with specified suggestions as described in sonar dcouments. But still not working.

Did you have the Git plugin install?

Yes I have