Skip to content

CICD-496 · Deployment frequency measurement ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-495 · Next · CICD-497

1. Where it fits ​

  • Placement delivery metrics report.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
jq -s '[.[] | select(.environment=="production" and .status=="success")] | unique_by(.deployment_id) | length' week-deployments.jsonl

3. How it works ​

The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.

4. Verify the result ​

A count applies only to the named observation window. Deduplicate retries of the same deployment.

Validation syntax-validated (Bash parse). Status definitions.