Jenkins · Parallel stages, post actions and libraries

Use Groovy in a declarative pipeline

A script block runs arbitrary Groovy for logic that declarative syntax can't express.

steps {
  script {
    def version = readFile('VERSION').trim()
    echo "Releasing ${version}"
  }
}

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?