传递参数4

pull/10/head
zengsb 2 years ago
parent 9169174943
commit a6ee451fab
  1. 1
      .drone.yml
  2. 6
      sonar-project.properties

@ -37,6 +37,7 @@ steps:
build_number: ${DRONE_BUILD_NUMBER} build_number: ${DRONE_BUILD_NUMBER}
build_version: ${DRONE_BUILD_VERSION} build_version: ${DRONE_BUILD_VERSION}
binaries: . binaries: .
usingProperties: true
sonar.branch.name: ${DRONE_BRANCH} # for branch analysis sonar.branch.name: ${DRONE_BRANCH} # for branch analysis
sonar.pullrequest.key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration sonar.pullrequest.key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration
sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration

@ -1,2 +1,4 @@
sonar.projectKey=pert sonar.branch.name: ${DRONE_BRANCH}
sonar.sources=. sonar.pullrequest.key: ${DRONE_PULL_REQUEST}
sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH}
sonar.pullrequest.base: ${DRONE_TARGET_BRANCH}
Loading…
Cancel
Save