From b32d3529590e1f2a1edb0b5f2e1ea2363f38bf7c Mon Sep 17 00:00:00 2001 From: LiJiLong <1711559666@qq.com> Date: Mon, 26 Jan 2026 10:43:20 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 52dbe97..b338df0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -59,6 +59,7 @@ pipeline { # 创建临时构建目录(整理部署所需文件) mkdir -p build-output/frontend mkdir -p build-output/backend + mkdir -p build-output/shared chmod -R 755 build-output # 确保Jenkins用户有读写权限 # 复制前端构建产物(静态资源,直接部署到 Web 根目录) @@ -69,6 +70,13 @@ pipeline { cp -r backend/prisma build-output/backend/ cp backend/package.json build-output/backend/ # cp backend/package-lock.json build-output/backend/ + + # 复制 shared 包和 Docker 配置 + if [ -d shared ]; then + cp -r shared/* build-output/shared/* + fi + + cp package.json build-output/ ''' }