diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a275d3f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +kind: pipeline # kind 属性定义了对象的种类。此示例定义了一个管道对象。 +type: docker # type 属性定义管道的类型。此示例定义了一个 Docker 管道,其中每个管道步骤都在 Docker 容器内执行。 +name: default # name 属性定义了管道的名称。您可以为您的项目定义一个或多个管道 + +steps: + - name: code-analysis + #image: plugins/sonarqube-scanner:linux-amd64 + image: plugins/sonarqube-scanner:linux-amd64 + settings: + sonar_host: http://10.0.4.16:9000 + sonar_token: sqp_1f8c46141040c583d8e1f81f4f8302230ee1317e + sonar_name: pert + sonar_key: pert + level: TRACE + showProfiling: true + binaries: . + +#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 \ No newline at end of file diff --git a/hly-service/hly-service-all/src/main/java/com/hlbd/provider/all/ClientApplication.java b/hly-service/hly-service-all/src/main/java/com/hlbd/provider/all/ClientApplication.java index e3b4637..acf7786 100644 --- a/hly-service/hly-service-all/src/main/java/com/hlbd/provider/all/ClientApplication.java +++ b/hly-service/hly-service-all/src/main/java/com/hlbd/provider/all/ClientApplication.java @@ -18,6 +18,8 @@ public class ClientApplication { public static void main(String[] args) { + System.out.println("testtest22"); + SpringApplication.run(ClientApplication.class, args); } diff --git a/pom.xml b/pom.xml index 226f3a1..0c97e6f 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ hly_project Demo project for Spring Boot - 8 + 17 2020.0.2 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