Stage declaration
The stage level of a pipeline has a basic structure that includes the following
parameters and syntax. For more information, see the StageDeclaration
The following example shows the stage level of the pipeline structure in both JSON and
YAML. The example shows two stages named Source
and Build
. The
example contains two conditions, one for onSuccess
and one for
beforeEntry
.
name
The name of the stage.
actions
The action level of a pipeline has a basic structure that includes the following parameters and syntax. To view parameters and examples, see Action declaration.
conditions
Conditions contain one or more rules that are available in a list of rules in CodePipeline. If all rules in a condition succeed, then the condition is met. You can configure conditions so that when the criteria are not met, the specified result engages.
You can configure the following types of conditions:
-
beforeEntry
-
onFailure
-
onSuccess
For more information and examples, see Configure conditions for a stage.
rules
Each condition has a rule set which is an ordered set of rules that are evaluated together. Therefore, if one rule fails in the condition, then the condition fails. You can override rule conditions at pipeline runtime.
The available rules are provided in the Rule reference. For more information, see the Rule structure reference at Rule structure reference.