xinwei #52

Merged
root merged 4 commits from xinwei into master 2024-08-28 12:05:54 +08:00
Showing only changes of commit b0d64190ee - Show all commits

View File

@ -93,18 +93,15 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
port: 22 # 远程连接端口
command_timeout: 10m # 远程执行命令超时时间
# 设置使用 bash shell
shell: bash
script:
# 导出远程服务器上的 PATH 环境变量
- export PATH=$PATH
- cd /root/ludu-cloud
- 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
- /root/apache-maven-3.9.4/bin/mvn clean package -Dmaven.test.skip=true
- port=48092 # 指定端口号
- pid=$(lsof -t -i:$port) # 获取占用指定端口的进程号
- if [[ -n "$pid" ]]; then
- if [ -n "$pid" ]; then
echo "Killing process $pid"
kill -9 $pid
fi