梁展鹏 3 years ago
parent
commit
3d0c08b6d1
1 changed files with 6 additions and 8 deletions
  1. 6 8
      Jenkinsfile

+ 6 - 8
Jenkinsfile

@@ -161,20 +161,18 @@ pipeline {
     stage('Pre-Release') {
       steps {
         script {
-          if ("${_git_branch}" == 'master') {
-            echo "当前分支为:[${_git_branch}], 准备发布ing..."
-          } else {
-            error("当前分支为:[${_git_branch}], 终止当前发布操作...")
-          }
+          echo "当前分支为:[${_git_branch}], 准备发布ing..."
+//           if ("${_git_branch}" == 'master') {
+//             echo "当前分支为:[${_git_branch}], 准备发布ing..."
+//           } else {
+//             error("当前分支为:[${_git_branch}], 终止当前发布操作...")
+//           }
         }
       }
     }
     stage('Release') {
       parallel {
         stage('开发环境(47.97.230.53)') {
-          when {
-            branch 'master' // 仅在多分支Pipeline有效
-          }
           steps {
             script {
               echo '准备发布ing...'