Revert "添加Dev渠道Yaml"

This reverts commit a8d4122462.
main
CaiJiayi 2025-06-23 15:07:19 +08:00
parent 288bf03bef
commit d515c5a02b
4 changed files with 13 additions and 51 deletions

View File

@ -14,6 +14,7 @@ ConfigAccessKeySecret:UF4mUjfxkE457WyfhKqSVOOn5uOB0H
ConfigBucketName:nld-dev-tuiqkbrtfjhuiaoz
ConfigURL:http://tuiqkbrtfjhuiaoz.kedrgame.com
PostUrl:http://dev_openapi.kedrgame.com/api/v1/
AppAccessKey:0SoE48O9sayjkG8J
AppKey:uUi_UI1oMKWo0VOSN1zme17Z70-FlAv3Lcx2mNhoYe4=

View File

@ -1,33 +0,0 @@
# 宏定义列表,供脚本添加到 PlayerSettings 的宏定义中
Define_list:
- SDK_POCO
- SDK_CRASHSIGHT # 崩溃监控 SDK 宏
- BI_PHXH # BI
# 应用包名
PackageName: "com.phxh.official.nld"
# 多语言配置
Language: "Lan_CN"
# 当前版本号
Version: "0.1.0"
# 构建资源远程上传路径
OssRemoteUploadPath: "oss://nld-dev-tuiqkbrtfjhuiaoz/client_res/Build"
AssetsEndPoint: "oss-cn-chengdu.aliyuncs.com"
# 阿里云 OSS 配置
ConfigAccessKeyId: "LTAI5tSoxnie6B5hot9PJVHC"
ConfigAccessKeySecret: "UF4mUjfxkE457WyfhKqSVOOn5uOB0H"
ConfigBucketName: "nld-dev-tuiqkbrtfjhuiaoz"
ConfigURL: "http://tuiqkbrtfjhuiaoz.kedrgame.com"
# http请求配置
AppAccessKey: "0SoE48O9sayjkG8J"
AppKey: "uUi_UI1oMKWo0VOSN1zme17Z70-FlAv3Lcx2mNhoYe4="
# 崩溃监控配置(仅 Android
CrashSight_Android:
id: "669a94ce69" # 崩溃上报的 App ID
key: "d9412717-2416-4270-b8bc-f7a0805f988f" # 崩溃上报的 Key

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 5d3a1a06bb3704f41b04be4736003323
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -106,7 +106,9 @@ pipeline {
SendMessageToWechat(message)
error("Failure of the '拉最新工程' stage")
}
}
}
}
stage('获取项目配置') {
@ -148,15 +150,14 @@ pipeline {
script {
try {
echo "根据 [${params.Channel}] 渠道获取相关参数"
def playersettings = "${WORKSPACE}/Tool/Channels/${CHANNEL_PARAM}/ChannelSetting.yaml"
// 1. YAML Groovy Map
def cfg = readYaml(file: playersettings)
// 2. YAML
VERSION_PARAM = (cfg?.Version ?: '').trim()
OSS_UPLOAD_PATH_PARAM = (cfg?.OssRemoteUploadPath ?: '').trim()
ASSETS_END_POINT_PARAM = (cfg?.AssetsEndPoint ?: '').trim()
// 3.
BUILD_PATH = "Builds/$CHANNEL_PARAM/$PLATFORM_PARAM/$VERSION_PARAM"
def playersettings = "$WORKSPACE/Tool/Channels/$CHANNEL_PARAM/ChannelSetting.txt"
sh "chmod +x $WORKSPACE/Tool/build_tools/get_build_version.sh"
sh "chmod +x $WORKSPACE/Tool/build_tools/get_build_upload_path.sh"
sh "chmod +x $WORKSPACE/Tool/build_tools/get_build_assets_end_point.sh"
VERSION_PARAM = sh(script: "$WORKSPACE/Tool/build_tools/get_build_version.sh $playersettings", returnStdout: true).trim()
OSS_UPLOAD_PATH_PARAM = sh(script: "$WORKSPACE/Tool/build_tools/get_build_upload_path.sh $playersettings", returnStdout: true).trim()
ASSETS_END_POINT_PARAM = sh(script: "$WORKSPACE/Tool/build_tools/get_build_assets_end_point.sh $playersettings", returnStdout: true).trim()
BUILD_PATH = "Builds/$CHANNEL_PARAM/$PLATFORM_PARAM/$VERSION_PARAM"
log_path="$BUILD_PATH/build.log"
echo "获取到的版本是 ${VERSION_PARAM}, 获取到的上传地址是 ${OSS_UPLOAD_PATH_PARAM}获取到的assets-oss-endpoint是 ${ASSETS_END_POINT_PARAM}"
} catch (err) {
@ -169,7 +170,7 @@ pipeline {
}
stage('打包') {
steps {
sh "chmod +x $WORKSPACE/Tool/build_tools/build_unity_yaml.sh"
sh "chmod +x $WORKSPACE/Tool/build_tools/build_unity.sh"
sh "chmod +x $WORKSPACE/Tool/build_tools/hot_update.sh"
script {
@ -323,4 +324,4 @@ pipeline {
}
}
}
}
}