jenkins parallel并行执行job以及pipeline官网

pipeline {
    agent {label 'ellis'}
    
    stages {
        stage('Hello') {
            parallel {
                stage("Build Echo") {
                    steps {
                        build job: 'Echo' 
                    }
                     
                }
                stage("Build params") {
                     steps {
                         build job: 'params', parameters: [
                          string(name: 'testparams', value:'test_param')]
                     }
                }
            }
        }
    }
}

https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples

https://www.jenkins.io/doc/book/pipeline/jenkinsfile/

你可能感兴趣的:(Jenkins,jenkins)