【build】main -》 dev

main
马远征 2025-12-23 19:44:55 +08:00
parent 998741eb48
commit 519d5fb756
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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