Compare commits

..

No commits in common. '4584671a969e84a315b00d44d08725735da1f809' and 'f08ede9e208c2ee114e572f5f0f90ed34de0abf0' have entirely different histories.

  1. 15
      .drone.yml
  2. 1
      hly-service/hly-service-all/src/main/java/com/hlbd/provider/all/ClientApplication.java
  3. 2
      sonar-project.properties

@ -26,6 +26,11 @@ steps:
#image: plugins/sonarqube-scanner:linux-amd64 #image: plugins/sonarqube-scanner:linux-amd64
#https://github.com/drone-plugins/sonarqube-scanner/blob/main/DOCS.md #https://github.com/drone-plugins/sonarqube-scanner/blob/main/DOCS.md
image: plugins/sonarqube-scanner:linux-amd64 image: plugins/sonarqube-scanner:linux-amd64
commands: # commands 属性将在 Docker 容器内执行的 shell 命令列表定义为容器入口点。如果任何命令返回非零退出代码,则管道步骤将失败。
- echo 1-${DRONE_BRANCH}
- echo 2-${DRONE_PULL_REQUEST}
- echo 3-${DRONE_SOURCE_BRANCH}
- echo 4-${DRONE_TARGET_BRANCH}
settings: settings:
sonar_host: http://10.0.4.16:9000 sonar_host: http://10.0.4.16:9000
sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d
@ -37,12 +42,10 @@ steps:
build_number: ${DRONE_BUILD_NUMBER} build_number: ${DRONE_BUILD_NUMBER}
build_version: ${DRONE_BUILD_VERSION} build_version: ${DRONE_BUILD_VERSION}
binaries: . binaries: .
pr_key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration sonar.branch.name: ${DRONE_BRANCH} # for branch analysis
pr_branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration sonar.pullrequest.key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration
pr_base: ${DRONE_TARGET_BRANCH} # for pull request analysis and decoration sonar.pullrequest.branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration
sonar_pr_key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration sonar.pullrequest.base: ${DRONE_TARGET_BRANCH} # for pull request analysis and decoration
sonar_pr_branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration
sonar_pr_base: ${DRONE_TARGET_BRANCH} # for pull request analysis and decoration
#kind: pipeline #kind: pipeline
#type: exec #type: exec

@ -18,7 +18,6 @@ public class ClientApplication {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("demo");
SpringApplication.run(ClientApplication.class, args); SpringApplication.run(ClientApplication.class, args);
} }

@ -0,0 +1,2 @@
sonar.projectKey=pert
sonar.sources=.
Loading…
Cancel
Save