Source code from my "Creating Jenkins pipelines with groovy-based DSL" talk at Confitura
To run the examples you have to install following Jenkins plugins:
You can install plugins either manually or by simply running scripts/install_plugins.groovy
script in Jenkins Script Console.