Sonarqube developer edition does not accepts project version declaration from Jenkins pipeline

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • Sonarqube Developer Edition - Version 7.9.2 (build 30863)
    Angular build, with dependency declared as
    “sonarqube-scanner”: “^2.5.0”,

  • what are you trying to achieve
    Get project version in Sonarqube uploaded from Jenkins pipeline

  • what have you tried so far to achieve this
    “”“npm run sonar \
    -Dsonar.projectKey={projectName} \\ -Dsonar.branch.name={sh(script:‘git name-rev --name-only HEAD’, returnStdout: true)} \
    -Dsonar.projectVersion=${sh(script:‘git describe --always’, returnStdout: true)}
    “””

Error message from Jenkins failed build is:
[time] SonarQube analysis finished.
+ -Dsonar.projectVersion=120ff51
/home/jenkins/workspace/@tmp/durable-efeb0036/script.sh: 5: /home/jenkins/workspace/@tmp/durable-efeb0036/script.sh: -Dsonar.projectVersion=120ff51: not found

What am I missing here?