We are using SonarQube version 8.2 and PR decoration is not configured in the same way as in version 7.x.
We are using Sonar scanner cli version 3.1.0.1141 but this parameters return null value now:
“-Dsonar.pullrequest.bitbucketserver.serverUrl=${pullRequestInfo.bitbucketUrl}”,
“-Dsonar.pullrequest.bitbucketserver.token.secured=${pullRequestInfo.bitbucketToken}”
We get this error:
Pull request decoration did not happen. Configuration missing to decorate the Bitbucket Server pull request: BitbucketServerPrConfiguration{serverUrl=null, project=‘test’, repository=‘test-test’, id=550, headSha=‘3da541559918a808c2402bba5012f6c60b27661c’, token=null}
We know it is posible to set this with API calls to SonarQube (api/alm_settings/create_bitbucket & api/alm_settings/set_bitbucket_binding) but we would like to continue using scanner cli for this, is there a way ?