完善 CI 质量门禁并启用覆盖率阈值
This commit is contained in:
Vendored
+14
@@ -18,6 +18,20 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Install Dependencies') {
|
||||
steps {
|
||||
sh 'npm ci'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Quality Gate') {
|
||||
steps {
|
||||
sh 'npm run lint'
|
||||
sh 'npx tsc --noEmit'
|
||||
sh 'npm run test:coverage'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Docker Image') {
|
||||
steps {
|
||||
sh "docker build --build-arg NEXT_PUBLIC_AMAP_API_KEY=${AMAP_KEY} -t ${APP_NAME}:${BUILD_NUMBER} -t ${APP_NAME}:latest ."
|
||||
|
||||
Reference in New Issue
Block a user