From a454b348f26b5672135b4d3ace370443d8bd2a1f Mon Sep 17 00:00:00 2001 From: zhang hongbo Date: Thu, 12 Feb 2026 18:33:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=96=B0=E6=9B=B4=E6=96=B0je?= =?UTF-8?q?nkins=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/Pipeline_dev.groovy | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/vars/Pipeline_dev.groovy b/vars/Pipeline_dev.groovy index 7e5dcdf..4f3f5e2 100644 --- a/vars/Pipeline_dev.groovy +++ b/vars/Pipeline_dev.groovy @@ -37,18 +37,24 @@ def call(Map config) credentialsId: '503eaa43-0676-40ac-81c0-d9c5cc8b4ff7' ]], extensions: [ - [$class: 'SubmoduleOption', - disableSubmodules: false, - parentCredentials: true, - recursiveSubmodules: true, - trackingSubmodules: false, // 关闭,避免冲突 - reference: '', - timeout: 20, - threads: 1], [$class: 'PruneStaleBranch'] ] ]) - + + // 使用自定义脚本处理 submodule + script { + echo '========================================' + echo '开始处理 Submodule' + echo '========================================' + + // 1. 重置 submodule(清理本地修改) + bat 'reset_submodules.bat' + + // 2. 更新 submodule(同步并拉取) + bat 'update_submodules.bat' + + echo 'Submodule 处理完成' + } } } stage("Build Unity Android")