From 4e4a40e097e657150c40e9841eaef59f6efca933 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Fri, 30 Aug 2024 11:30:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?datacenter=E6=9E=84=E5=BB=BA=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E9=BB=98=E8=AE=A4clone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone-datacenter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone-datacenter.yml b/.drone-datacenter.yml index 13c84ba48..b96d9a72e 100644 --- a/.drone-datacenter.yml +++ b/.drone-datacenter.yml @@ -4,6 +4,8 @@ type: docker # 定义流水线类型,还有kubernetes、exec、ssh等类型 name: ludu-datacenter-drone # 定义流水线名称 +clone: + disable: true steps: # 定义流水线执行步骤,这些步骤将顺序执行 From c102c1fab2c0d7eecddec8108e3dc7fd8647b81c Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Fri, 30 Aug 2024 11:31:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?datacenter=E6=9E=84=E5=BB=BA=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E5=90=8C=E6=AD=A5=E7=BA=BF=E4=B8=8A=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone-datacenter.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone-datacenter.yml b/.drone-datacenter.yml index b96d9a72e..c9253e31e 100644 --- a/.drone-datacenter.yml +++ b/.drone-datacenter.yml @@ -29,7 +29,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 script: | cd /root/ludu-cloud - git pull origin master + git fetch origin + git reset --hard origin/master + git clean -fd /root/apache-maven-3.9.4/bin/mvn package -Dmaven.test.skip=true cd ludu-module-datacenter/ludu-module-datacenter-biz/ chmod +x run.sh