diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3557917 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +type: docker +name: 代码分析 + +steps: + - name: 代码分析 + image: aosapps/drone-sonar-plugin + settings: + sonar_host: http://124.221.150.102:9000 + sonar_token: squ_2f0d436632d5d7c0a5a9242fefb42ff3b9e30028 + +node: + role: sonarqube \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..e6b61f9 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=pert +sonar.sources=. \ No newline at end of file