From a742e2dcf6af05d1739b04d9c65a804111fdaf6c Mon Sep 17 00:00:00 2001 From: Home Date: Sat, 28 Mar 2026 22:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4jenkins=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 58345cc9..c6b601c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,6 +33,16 @@ pipeline { sh "npm run build:app-plus:${env.BRANCH_NAME}" } } + stage('复制UniApp资源到安卓assets目录') { + steps { + echo "开始复制 dist 资源到 ${ANDROID_ASSETS_DIR}" + // 先创建目标目录(防止目录不存在报错) + sh "mkdir -p ${ANDROID_ASSETS_DIR}" + // 把 dist 里所有文件 复制 到安卓资源目录(推荐) + sh "cp -rf dist/* ${ANDROID_ASSETS_DIR}/" + echo "✅ 资源复制完成" + } + } // // stage('构建 & 测试') {