From 8fe4a80b0504cc1db2e27e436539d61fb9c693ad Mon Sep 17 00:00:00 2001 From: zengsb Date: Thu, 15 Jun 2023 16:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95drone=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E8=A1=8C=E4=B8=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 30 +++++++------------ .../hlbd/provider/all/ClientApplication.java | 2 ++ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6ab6004..b3875d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,16 +1,17 @@ kind: pipeline # kind 属性定义了对象的种类。此示例定义了一个管道对象。 type: docker # type 属性定义管道的类型。此示例定义了一个 Docker 管道,其中每个管道步骤都在 Docker 容器内执行。 name: default # name 属性定义了管道的名称。您可以为您的项目定义一个或多个管道 -clone: - disable: true # 启用代码拉取 - -steps: # 步骤部分定义了一系列串行执行的管道步骤。如果管道中的任何步骤失败,管道将立即退出 - - name: greeting # name 属性定义管道步骤的名称 - image: alpine # image 属性定义了一个执行 shell 命令的 Docker 镜像。您可以使用来自任何 DockerHub 中的任何 Docker镜像。 - commands: # commands 属性将在 Docker 容器内执行的 shell 命令列表定义为容器入口点。如果任何命令返回非零退出代码,则管道步骤将失败。 - - echo hello - - echo world +steps: + - name: code-analysis + image: plugins/sonarqube-scanner:linux-amd64 + settings: + sonar_host: http://124.221.150.102:9000 + sonar_token: sqp_1f8c46141040c583d8e1f81f4f8302230ee1317e + sonar_name: pert + sonar_key: pert + level: TRACE + showProfiling: true #kind: pipeline #type: exec @@ -31,15 +32,6 @@ steps: # 步骤部分定义了一系列串行执行的管道步骤。如果管 #type: docker #name: code-analysis # -#steps: -# - name: code-analysis -# image: plugins/sonarqube-scanner:linux-amd64 -# settings: -# sonar_host: http://124.221.150.102:9000 -# sonar_token: sqp_1f8c46141040c583d8e1f81f4f8302230ee1317e -# sonar_name: pert -# sonar_key: pert -# level: TRACE -# showProfiling: true + #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..487826b 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("testtest"); + SpringApplication.run(ClientApplication.class, args); }