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.
More on Declarative pipeline syntax
What is the minimum valid declarative pipeline?BeginnerWhat agent types exist in declarative pipelines?IntermediateWhen do you use `agent none` at the top level?IntermediateHow do nested sequential stages work and why are they useful?IntermediateList the `post` conditions and when each fires.IntermediateWhat are the most useful `when` conditions?Intermediate