From 085f32f3e9db7c8cb1ae85b5a500a9447fcf6eaf Mon Sep 17 00:00:00 2001 From: mwh <289563215@qq.com> Date: Fri, 26 Dec 2025 17:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0skipDefaultCheckout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/Pipeline_dev.groovy | 6 +++++- vars/achiveArtifact.groovy | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vars/Pipeline_dev.groovy b/vars/Pipeline_dev.groovy index f6a4767..1c81f0f 100644 --- a/vars/Pipeline_dev.groovy +++ b/vars/Pipeline_dev.groovy @@ -8,6 +8,10 @@ def call(Map config) pipeline { agent none + options + { + skipDefaultCheckout(true) // ★ 关键:禁止 Jenkins 自动 checkout library + } stages { stage("Checkout Unity Project") @@ -44,7 +48,7 @@ def call(Map config) } steps { - buildBundlesAndroid config + BuildBundlesAndroid config } } stage("AchiveArtifact") diff --git a/vars/achiveArtifact.groovy b/vars/achiveArtifact.groovy index 177de1a..f2a6057 100644 --- a/vars/achiveArtifact.groovy +++ b/vars/achiveArtifact.groovy @@ -5,7 +5,7 @@ def call(publishSubFolder) { - // Move artifacts to an Android subdirectory + // Move artifacts to an Android subdirectory and achive bat """ if exist tmpPublish rmdir /S /Q tmpPublish mkdir tmpPublish