All languages

Groovy

You're viewing a free preview. Sign in free to read every script.

Why this exists Groovy looks like Java with the boilerplate removed, and that is exactly how most people meet it: a Jenkinsfile that seems to be half English, half Java. Before touching pipelines, it helps to see the…

Groovy Basics: Variables, Strings and Lists

The first things to know in Groovy: declaring variables with def, the difference between single- and double-quoted strings, building and slicing lists, and the shortcuts (Elvis, safe navigation) you will see in every Jenkinsfile.

Sign in free to read this script, along with the rest of the library.

Sign in free