Explorar o código

增加判断为master分支才做CD

梁展鹏 %!s(int64=4) %!d(string=hai) anos
pai
achega
0118cd5b30
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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...'