Groovy
You're viewing a free preview. Sign in free to read every script.
Why this exists Once you have more than a couple of pipelines, the same snippets get copied between Jenkinsfiles: notify on failure, tag a build, run a standard deployment. A shared library is a Git repository of Groovy…
Your First Jenkins Shared Library Step
A tiny shared library with one custom step, notifyBuild, that sends a build result email. Shows the vars/ folder layout, the call method that makes a file callable like a step, how to register the library in Jenkins and how a Jenkinsfile uses it.
Sign in free to read this script, along with the rest of the library.
Sign in free