Control Flow for Pipelines¶
Use IF, FOR EACH, and array comprehensions to filter and reshape data.
Goal¶
Only ship healthy builds and annotate the output when checks fail.
Example¶
TRANSFORM PipelineHealth {
LET status = INPUT.build.status;
IF status == "success" {
OUTPUT { deploy: true, status: status };
} ELSE {
OUTPUT { deploy: false, status: status, reason: INPUT.build.reason };
}
}
Try it in the Playground¶
Related guides¶
Next steps¶
Continue to Error Handling and Tracing.