You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snarwork/.drone.yml

68 lines
2.1 KiB

kind: pipeline # kind 属性定义了对象的种类。此示例定义了一个管道对象。
type: docker # type 属性定义管道的类型。此示例定义了一个 Docker 管道,其中每个管道步骤都在 Docker 容器内执行。
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: .
2 years ago
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: .
2 years ago
pr_key: ${DRONE_PULL_REQUEST} # for pull request analysis and decoration
pr_branch: ${DRONE_SOURCE_BRANCH} # for pull request analysis and decoration
pr_base: ${DRONE_TARGET_BRANCH} # for pull request analysis and decoration
sonar_pr_key: ${DRONE_PULL_REQUEST} # 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
#type: exec
#name: default
#
#platform:
# os: linux
# arch: amd64
#
#steps:
# - name: greeting
# commands:
# - echo hello world
#node:
# role: pi-runner
#---
#kind: pipeline
#type: docker
#name: code-analysis
#
#node:
# role: pi-runner