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

2023-12-22 15:52:40
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/

文章来源:https://blog.csdn.net/weixin_43632687/article/details/135152006
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。