I'm trying to run Sonar scans at Github's Pull Requests from Drone.io.
This is the sequence:
- PR is made
- Drone.io build is triggered
- Gradle task is executed
- Gradle's Sonar plugin with Drone's environment is run
This is the command used in Drone's build:
gradle/wrapper all sonarqube \
-Dsonar.analysis.mode=preview \
-Dsonar.github.pullRequest=$DRONE_BUILD_NUMBER \
-Dsonar.github.oauth=<github_token>
I cannot find the PR ID in the Drone environment. Do you know if there is an alternative?