This commit is contained in:
sophie committed 2026-05-21 19:14:49 +08:00
1 parent 211763908a
commit 01b095e900
1 file changed
+15 -15
Vendored
+15 -15
View File
@@ -329,21 +329,21 @@ 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('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 {