From e709f030003831a46f08ddfe4184354120f8a26f Mon Sep 17 00:00:00 2001 From: zengsb Date: Thu, 15 Jun 2023 20:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E4=B8=80=E4=B8=AA=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=B0=9D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2a0b3c7..ca6595b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,21 +3,35 @@ type: docker # type 属性定义管道的类型。此示例定义了一个 Do name: default # name 属性定义了管道的名称。您可以为您的项目定义一个或多个管道 steps: - - name: code-analysis - #image: plugins/sonarqube-scanner:linux-amd64 - #https://github.com/drone-plugins/sonarqube-scanner/blob/main/DOCS.md - image: plugins/sonarqube-scanner:linux-amd64 - settings: - sonar_host: http://10.0.4.16:9000 - sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d - sonar_name: pert - sonar_key: pert - level: TRACE - showProfiling: true - branch: ${DRONE_BRANCH} - build_number: ${DRONE_BUILD_NUMBER} - build_version: ${DRONE_BUILD_VERSION} - binaries: . + -name: code-analysis + +image: aosapps/drone-sonar-plugin +settings: +sonar_host: http://10.0.4.16:9000 +sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d +ver: 1.0 +timeout: 20 +sources: . +level: DEBUG +showProfiling: true + + +#steps: +# - name: code-analysis +# #image: plugins/sonarqube-scanner:linux-amd64 +# #https://github.com/drone-plugins/sonarqube-scanner/blob/main/DOCS.md +# image: plugins/sonarqube-scanner:linux-amd64 +# settings: +# sonar_host: http://10.0.4.16:9000 +# sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d +# sonar_name: pert +# sonar_key: pert +# level: TRACE +# showProfiling: true +# branch: ${DRONE_BRANCH} +# build_number: ${DRONE_BUILD_NUMBER} +# build_version: ${DRONE_BUILD_VERSION} +# binaries: . #kind: pipeline #type: exec