代码分析更新34

pull/9/head
zengsb 2 years ago
parent c4880462b4
commit f218bb5186
  1. 46
      .drone.yml

@ -3,41 +3,41 @@ type: docker # type 属性定义管道的类型。此示例定义了一个 Do
name: default # name 属性定义了管道的名称。您可以为您的项目定义一个或多个管道 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: aosapps/drone-sonar-plugin
settings:
sonar_host: http://10.0.4.16:9000
sonar_token: squ_d37ffc4085858b55e0b379c68e09a8163b2ba81d
sonar_name: pert
sonar_key: pert
ver: 1.0
timeout: 20
sources: .
level: DEBUG
showProfiling: true
binaries: .
#steps: #steps:
# - name: code-analysis # - name: code-analysis
# #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: aosapps/drone-sonar-plugin
# 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
# sonar_name: pert # sonar_name: pert
# sonar_key: pert # sonar_key: pert
# level: TRACE # ver: 1.0
# timeout: 20
# sources: .
# level: DEBUG
# showProfiling: true # showProfiling: true
# branch: ${DRONE_BRANCH}
# build_number: ${DRONE_BUILD_NUMBER}
# build_version: ${DRONE_BUILD_VERSION}
# binaries: . # binaries: .
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 #kind: pipeline
#type: exec #type: exec
#name: default #name: default

Loading…
Cancel
Save