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

All parallel stages, post actions and libraries commands · Jenkins cheatsheet

Was this page helpful?