Jenkins pipeline: parallel stages
Parallel stages
examples/jenkins/parallel.Jenkinsfile
pipeline { agent { label 'master' } stages { stage('before') { steps { println("before") } } stage('para') { parallel { stage('apple') { steps { println("apple 1") sleep(20 * Math.random()) println("apple 2") } } stage('banana') { steps { println("banana 1") sleep(20 * Math.random()) println("banana 2") } } stage('peach') { steps { println("peach 1") sleep(20 * Math.random()) println("peach 2") } } } } stage('after') { steps { println("after") } } } }
Published on 2020-07-03
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post