Jenkins · Parallel stages, post actions and libraries
Run stages in parallel
Run independent stages at the same time.
stage('Checks') {
parallel {
stage('Unit tests') { steps { sh 'make test' } }
stage('Lint') { steps { sh 'make lint' } }
}
}
Official Jenkins documentation
More parallel stages, post actions and libraries commands
- Run a matrix of combinations
- React to the result
- Use a shared library
- Use Groovy in a declarative pipeline
All parallel stages, post actions and libraries commands · Jenkins cheatsheet