Declarative Pipeline
Declarative Pipeline provides a structured format built around a top-level pipeline block. Its main concepts include agent, stages, stage, steps, environment, options, when and post. The agent directive determines where work executes. A stage groups related operations, while its steps define the actual actions. The when directive can control whether a stage runs under specified conditions. A post section can define actions associated with completion, success, failure or other supported outcomes. These structures encourage readable pipelines and make ordinary build processes easier for multiple developers to maintain. For many application projects, Declarative Pipeline is a sensible default because the workflow remains visible without requiring extensive Groovy programming.


