From a6ee451fab5be1ca006807d46ad15a5797ab7c55 Mon Sep 17 00:00:00 2001 From: zengsb Date: Thu, 15 Jun 2023 21:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E9=80=92=E5=8F=82=E6=95=B04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 1 + sonar-project.properties | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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