This commit is contained in:
parent
b0d64190ee
commit
a2a6671131
@ -94,18 +94,18 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|||||||
|
|
||||||
command_timeout: 10m # 远程执行命令超时时间
|
command_timeout: 10m # 远程执行命令超时时间
|
||||||
|
|
||||||
script:
|
script: |
|
||||||
- cd /root/ludu-cloud
|
cd /root/ludu-cloud
|
||||||
- git pull origin master
|
git pull origin master
|
||||||
- rm -f ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/framework/nacos/config/BeanInit.java
|
rm -f ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/framework/nacos/config/BeanInit.java
|
||||||
- /root/apache-maven-3.9.4/bin/mvn clean package -Dmaven.test.skip=true
|
/root/apache-maven-3.9.4/bin/mvn clean package -Dmaven.test.skip=true
|
||||||
- port=48092 # 指定端口号
|
port=48092 # 指定端口号
|
||||||
- pid=$(lsof -t -i:$port) # 获取占用指定端口的进程号
|
pid=$(lsof -t -i:$port) # 获取占用指定端口的进程号
|
||||||
- if [ -n "$pid" ]; then
|
if [ -n "$pid" ]; then
|
||||||
echo "Killing process $pid"
|
echo "Killing process $pid"
|
||||||
kill -9 $pid
|
kill -9 $pid
|
||||||
fi
|
fi
|
||||||
- nohup java -Xms256m -Xmx256m -jar ludu-module-datacenter/ludu-module-datacenter-biz/target/ludu-module-datacenter-biz.jar > api.log &
|
nohup java -Xms256m -Xmx256m -jar ludu-module-datacenter/ludu-module-datacenter-biz/target/ludu-module-datacenter-biz.jar > api.log &
|
||||||
|
|
||||||
volumes: # 定义流水线挂载目录,用于共享数据
|
volumes: # 定义流水线挂载目录,用于共享数据
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user