This commit is contained in:
sxu 2024-12-31 09:07:35 +08:00
parent be798781d1
commit 37b4cf9096
5 changed files with 13 additions and 48 deletions

View File

@ -1,10 +1,10 @@
AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-material-mall.jar
GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-material-mall.jar
SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-material-mall.jar
JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-material-mall.jar
FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-material-mall.jar
MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-material-mall.jar
MATERIAL_RESOURCE_NAME=bonus-material-mall.jar
AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-smart-site.jar
GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-smart-site.jar
SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-smart-site.jar
JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-smart-site.jar
FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-smart-site.jar
MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-smart-site.jar
SMART_SITE_RESOURCE_NAME=bonus-smart-site.jar
tpid=`ps -ef|grep $AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
@ -97,13 +97,13 @@ echo 'Stop Success!'
fi
tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo 'Stop Process...'
kill -15 $tpid
fi
sleep 5
tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo 'Kill Process!'
kill -9 $tpid

View File

@ -1,35 +0,0 @@
# Tomcat
server:
port: 18588
# Spring
spring:
servlet:
multipart:
# 文件最大
max-file-size: 20MB
# 设置总上传数据总大小
max-request-size: 20MB
application:
# 应用名称
name: bonus-material
profiles:
# 环境配置
active: sgzb_bns_test
cloud:
nacos:
username: nacos
password: bonus@Admin123
discovery:
# 服务注册地址
server-addr: 192.168.0.244:8848
namespace: sgzb_bns
config:
# 配置中心地址
server-addr: 192.168.0.244:8848
namespace: sgzb_bns
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -17,7 +17,7 @@ pipeline {
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '']],
submoduleCfg: [],
userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Material.git']]
userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Smart-Site.git']]
])
}
}

View File

@ -11,7 +11,7 @@ spring:
max-request-size: 20MB
application:
# 应用名称
name: bonus-material-mall
name: bonus-smart-site
profiles:
# 环境配置
active: smart_site_test

View File

@ -1,6 +1,6 @@
P_ID=$(pgrep -f BonusMaterialApplication)
P_ID=$(pgrep -f BonusSmartSiteApplication)
if [ -z "$P_ID" ]; then
echo "BonusMaterialApplication is not running"
echo "BonusSmartSiteApplication is not running"
else
kill -9 "$P_ID"
fi