diff --git a/.drone-datacenter.yml b/.drone-datacenter.yml index 13c84ba48..c9253e31e 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: # 定义流水线执行步骤,这些步骤将顺序执行 @@ -27,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