Browse Source

增加判断为master分支才做CD

梁展鹏 3 years ago
parent
commit
0118cd5b30
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Jenkinsfile

+ 3 - 0
Jenkinsfile

@@ -171,6 +171,9 @@ pipeline {
     stage('Release') {
       parallel {
         stage('master分支') {
+          when {
+            branch 'master' // 仅在多分支Pipeline有效
+          }
           steps {
             script {
               echo '准备发布ing...'