Merge branch 'dev' into test

This commit is contained in:
sophie committed 2026-05-21 19:15:11 +08:00
commit 642b71a007
1 file changed
+15 -15
Vendored
+15 -15
View File
@@ -329,21 +329,21 @@ pipeline {
} }
} }
stage('Frontend Build (CI)') { // stage('Frontend Build (CI)') {
when { // when {
expression { env.FRONTEND_CHANGED == 'true' } // expression { env.FRONTEND_CHANGED == 'true' }
} // }
steps { // steps {
echo '[Frontend Build] FRONTEND_CHANGED=true,容器内执行 npm ci && npm run build(与部署构建一致)' // echo '[Frontend Build] FRONTEND_CHANGED=true,容器内执行 npm ci && npm run build(与部署构建一致)'
sh ''' // sh '''
set -e // set -e
docker run --rm \ // docker run --rm \
-v "${WORKSPACE}:/repo" \ // -v "${WORKSPACE}:/repo" \
-w /repo \ // -w /repo \
node:22-alpine sh -c "chmod +x scripts/ci_frontend_build.sh && ./scripts/ci_frontend_build.sh" // node:22-alpine sh -c "chmod +x scripts/ci_frontend_build.sh && ./scripts/ci_frontend_build.sh"
''' // '''
} // }
} // }
stage('Deploy Dev') { stage('Deploy Dev') {
when { when {