Compare commits
2 Commits
4c3c582ebd
...
f2b8f017e2
Author | SHA1 | Date | |
---|---|---|---|
f2b8f017e2 | |||
2d4ddfd517 |
@ -102,11 +102,11 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
||||
- mvn 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
|
||||
- nohup java -Xms256m -Xms256m -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: # 定义流水线挂载目录,用于共享数据
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user