Creator版本:3.6.2
问题:构建机通过命令行切换到当前机器从未构建的新平台,构建必定失败
重现步骤:
- 开发机通过构建面板导出web-mobile配置并提交
- 构建机update后通过jenkins启动web-mobile构建(结果失败)
构建机仅构建过web-desktop
构建机没打开过web-mobile构建面板 - 构建机手动打开项目,并打开构建面板,切换到web-mobile,并导入构建配置
- 构建机关闭界面后,重新通过jenkins启动web-mobile构建(结果成功)
两次构建命令:
D:\CocosDashboard\resources.editors\Creator\3.6.2\CocosCreator.exe --project E:\repos\proj_2\trunk --build “configPath=E:\repos\proj_2\trunk\scripts\buildcfgs\web-mobile.json”
成功时关键日志:
[Im-plugin] No online info of im-plugin.
请等待当前构建任务结束后再进行构建
Check and complete build options {
‘"configPath’: ‘E:\repos\proj_2\trunk\scripts\buildcfgs\web-mobile.json"’,
platform: ‘web-mobile’,
outputName: ‘web-mobile’
}
compression type(undefined) is invalid for this platform! 将会使用新值 merge_dep
2022-12-20 10:15:11-debug: =================================== Build Task (web-mobile) Start ================================
失败时关键日志:
请等待当前构建任务结束后再进行构建
[Im-plugin] No online info of im-plugin.
Check and complete build options {
‘"configPath’: ‘E:\repos\proj_2\trunk\scripts\buildcfgs\web-mobile.json"’,
platform: ‘web-desktop’,
outputName: ‘web-desktop’
}
compression type(undefined) is invalid for this platform! 将会使用新值 merge_dep
2022-12-20 09:44:56-debug: =================================== Build Task (web-desktop) Start ================================