...
Here’s a pseudocode representation of two parallel Stages defined in a Jenkins Pipeline. It runs the following stages concurrently:
A test (Windows command line) on any Jenkins Agent with a ‘windows’ label, and
A test (Unix shell) on any Jenkins Agent with a ‘linux’ label
Code Block |
---|
pipeline { stages { stage('Do These Concurrently') { parallel { stage('Test On Windows') { agent { label "windows" } steps { bat "run-tests.bat" } post { always { junit "**/TEST-*.xml" } } } stage('Test On Linux') { agent { label "linux" } steps { sh "run-tests.sh" } post { always { junit "**/TEST-*.xml" } } } } } } } |
...