diff --git a/.drone.yml b/.drone.yml index f24eca6..6f655c6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,6 +37,7 @@ steps: build_number: ${DRONE_BUILD_NUMBER} build_version: ${DRONE_BUILD_VERSION} binaries: . + usingProperties: true sonar.branch.name: ${DRONE_BRANCH} # for branch analysis sonar.pullrequest.key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration diff --git a/sonar-project.properties b/sonar-project.properties index e6b61f9..12ffd46 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,2 +1,4 @@ -sonar.projectKey=pert -sonar.sources=. \ No newline at end of file +sonar.branch.name: ${DRONE_BRANCH} +sonar.pullrequest.key: ${DRONE_PULL_REQUEST} +sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH} +sonar.pullrequest.base: ${DRONE_TARGET_BRANCH} \ No newline at end of file