1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline { 
    agent any 
    stages { 
        //添加并行构建stage
        stage('Parallel Steps') {
            parallel {
              //此处添加需要并行构建的多个stage
              stage('Build Backend') { 
                  ...
              } 
              stage('Build Front') { 
                  ...
              } 
              stage('Build android-app') { 
                  ...
              } 
              stage('Build ios-app') { 
                  ...
              } 
            }
        }
    } 
}