Interview Prep/Jenkins/Declarative pipeline syntax

What is the Declarative Directive Generator and Snippet Generator?

BeginnerConceptDeclarative pipeline syntax
Answer

Both live under <job>/pipeline-syntax. The Snippet Generator produces correct step syntax (checkout, withCredentials, junit) for the plugins actually installed on your controller. The Directive Generator produces declarative directives (agent, options, triggers, when). The same page links to Global Variables Reference listing env, params, currentBuild, scm and library-defined globals. It is the fastest way to get a plugin's parameter names right.

All Jenkins questions Roadmap: Jenkins

More on Declarative pipeline syntax