This commit is contained in:
sophie committed 2026-05-21 11:38:54 +08:00
1 parent a6f35b375c
commit b1613824ce
8 files changed
+200 -12

No files matched your search

Vendored
+16
View File
@@ -329,6 +329,22 @@ pipeline {
}
}
stage('Frontend Build (CI)') {
when {
expression { env.FRONTEND_CHANGED == 'true' }
}
steps {
echo '[Frontend Build] FRONTEND_CHANGED=true,容器内执行 npm ci && npm run build(与部署构建一致)'
sh '''
set -e
docker run --rm \
-v "${WORKSPACE}:/repo" \
-w /repo \
node:22-alpine sh -c "chmod +x scripts/ci_frontend_build.sh && ./scripts/ci_frontend_build.sh"
'''
}
}
stage('Deploy Dev') {
when {
expression {