fix: deployPort:15020,15021

This commit is contained in:
conny890 2025-06-24 11:13:04 +08:00
parent a418a680f6
commit af95c8acac

4
Jenkinsfile vendored
View File

@ -182,12 +182,12 @@ pipeline {
echo '🚀 部署应用到服务器...'
script {
// 根据分支决定部署端口和配置
def deployPort = '8080'
def deployPort = '15020'
def containerName = 'jenkins-demo'
def springProfile = 'prod'
if (env.BRANCH_NAME == 'develop' || env.BRANCH_NAME?.startsWith('feature/')) {
deployPort = '8081' // 测试环境使用不同端口
deployPort = '15021' // 测试环境使用不同端口
containerName = 'jenkins-demo-test'
springProfile = 'test'
}