Przeglądaj źródła

fix: Jenkinsfile去除人工审核

天空之城 3 tygodni temu
rodzic
commit
89876751e0
1 zmienionych plików z 0 dodań i 20 usunięć
  1. 0 20
      Jenkinsfile

+ 0 - 20
Jenkinsfile

@@ -6,7 +6,6 @@ pipeline {
   }
   parameters {
     string(name: 'BRANCH', defaultValue: 'uat', description: '要部署到UAT的分支')
-    booleanParam(name: 'SKIP_APPROVAL', defaultValue: false, description: '跳过人工审批(谨慎使用)')
   }
 
   environment {
@@ -45,25 +44,6 @@ pipeline {
     // 注意:使用 "Pipeline script from SCM" 模式时,
     // Jenkins 会自动 checkout 代码到 workspace,不需要在 Jenkinsfile 里再写 Checkout stage。
 
-    stage('人工审批') {
-      when {
-        expression { !params.SKIP_APPROVAL }
-      }
-      steps {
-        script {
-          def userInput = input(
-            id: 'UATDeployConfirm',
-            message: "是否将分支 ${params.BRANCH} 部署到 UAT 环境?",
-            ok: '确认部署',
-            submitter: 'admin,release-manager',
-            parameters: [
-              booleanParam(name: 'CONFIRM', defaultValue: true, description: '我确认部署到UAT')
-            ]
-          )
-        }
-      }
-    }
-
     stage('Build Images') {
       steps {
         script {