Jenkins · Parallel stages, post actions and libraries
Use a shared library
Load reusable pipeline code defined in another repository.
@Library('my-shared-lib') _
pipeline {
agent any
stages {
stage('Deploy') { steps { deployApp(env: 'staging') } }
}
}
Official Jenkins documentation
More parallel stages, post actions and libraries commands
- Run stages in parallel
- Run a matrix of combinations
- React to the result
- Use Groovy in a declarative pipeline
All parallel stages, post actions and libraries commands · Jenkins cheatsheet