【build】main -》 dev
parent
998741eb48
commit
519d5fb756
|
|
@ -104,7 +104,7 @@ pipeline {
|
|||
echo "获取到分支名字:${remote}"
|
||||
// 检查远程分支是否存在
|
||||
if (!CheckRemoteBranchExists(repoUrl, remote)) {
|
||||
def message = "【${PLATFORM_PARAM}】【${VERSION_PARAM}】【Debug】【${CHANNEL_PARAM}】远程分支 ${remote} 不存在,使用默认分支 main"
|
||||
def message = "【${PLATFORM_PARAM}】【${VERSION_PARAM}】【Debug】【${CHANNEL_PARAM}】远程分支 ${remote} 不存在,使用默认分支 dev"
|
||||
SendMessageToWechat(message)
|
||||
remote = 'dev' // 回退到默认分支
|
||||
}
|
||||
|
|
@ -131,9 +131,9 @@ pipeline {
|
|||
def branch = GetRemote();
|
||||
// 检查远程分支是否存在
|
||||
if (!CheckRemoteBranchExists(gameplayUrl, branch)) {
|
||||
def message = "【${PLATFORM_PARAM}】【${VERSION_PARAM}】【Debug】【${CHANNEL_PARAM}】远程分支 ${branch} 不存在,使用默认分支 main"
|
||||
def message = "【${PLATFORM_PARAM}】【${VERSION_PARAM}】【Debug】【${CHANNEL_PARAM}】远程分支 ${branch} 不存在,使用默认分支 dev"
|
||||
SendMessageToWechat(message)
|
||||
branch = 'main' // 回退到默认分支
|
||||
branch = 'dev' // 回退到默认分支
|
||||
}
|
||||
|
||||
sh "chmod +x ${WORKSPACE}/Tool/build_tools/git_pull_gameplay.sh"
|
||||
|
|
|
|||
|
|
@ -52,11 +52,11 @@ def GetRemote(){
|
|||
if('Banshu' == params.Channel)
|
||||
return 'shenhe';
|
||||
else if('Official' == params.Channel)
|
||||
return 'main'
|
||||
return 'dev'
|
||||
else if('TapTap' == params.Channel)
|
||||
return 'tap_release'
|
||||
else if('ReleaseTest' == params.Channel)
|
||||
return 'main'
|
||||
return 'dev'
|
||||
else if('Test' == params.Channel)
|
||||
return 'test'
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue