To others looking for a solution to the SHA problem, use sonar.scm.revision (not sonar.pullrequest.bitbucketserver.headSha).
To others looking for a solution to the SHA problem, use sonar.scm.revision (not sonar.pullrequest.bitbucketserver.headSha).