Supply PR parameters from bitbucket to build scheduler Teamcity

Hello,
How can we automaticly supply , values for
-Dsonar.pullrequest.branch
-Dsonar.pullrequest.base=develop -Dsonar.pullrequest.key
from bitbucket to our build system ?

Hi @andgru,

I’m not familiar at all with TeamCity, but usually you have to populate the sonarqube analysis parameters with values that your CI provides from environment variables in your CI scripts or configuration.

It seems that you can get those variables in teamcity.

Hope it helps,
Cheers

Thank you!