fix: deployPort:15020,15021
This commit is contained in:
parent
a418a680f6
commit
af95c8acac
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user