Groovy
You're viewing a free preview. Sign in free to read every script.
Why this exists Declarative pipelines give you structure; scripted pipelines give you Groovy. When the logic does not fit the declarative blocks (deciding which stages to run, looping over environments, custom error…
A Scripted Pipeline with Parameters and Approval
The same pipeline idea written in scripted style, where the full power of Groovy (variables, if/else, try/catch/finally) is available directly, with a choice parameter, a dry-run switch and an approval gate for sensitive environments.
Sign in free to read this script, along with the rest of the library.
Sign in free