Jenkins Flaky Test Triage and Auto-Retry Gate
On every Jenkins build-finished event, tell flaky tests apart from a real break or a performance regression, and only auto-retry the build when retrying is actually safe.
Audit Zot OCI container image registry health, track repository catalog depth, and alert via Slack to prevent Docker and Kubernetes image pull failures.
Zot is a production-grade, vendor-neutral OCI (Open Container Initiative) image registry written in Go by the Linux Foundation and Cisco as a fast, secure, and lightweight alternative to Harbor or Docker Distribution. Designed for edge computing, Kubernetes clusters, and enterprise CI/CD environments, Zot provides full support for OCI distribution specs, Helm charts, and multi-architecture container artifacts. In busy CI/CD pipelines, automated build agents push hundreds of transient container tags and ephemeral test images weekly. If the registry distribution endpoint degrades or unmanaged repositories exhaust underlying volume storage, Docker daemon pushes stall and Kubernetes pods fail into ImagePullBackOff loops. This blueprint deploys an automated sentinel that verifies Zot daemon responsiveness, audits repository catalog growth against enterprise quotas, routes Slack alerts, and enforces safe operational safeguards.
periodic_zot_audit (io.kestra.plugin.core.trigger.Schedule) initiates scheduled monitoring every 15 minutes. Shipped disabled so initial connectivity can be verified manually.probe_registry_v2_endpoint (io.kestra.plugin.core.http.Request) invokes GET /v2/ to ensure the core OCI distribution specification API is functional and responsive.probe_catalog_repositories (io.kestra.plugin.core.http.Request) invokes GET /v2/_catalog to inspect all hosted container image repositories.classify_registry_status (io.kestra.plugin.core.flow.Switch) analyzes probe results:REGISTRY_UNAVAILABLE: Fires if /v2/ returns a non-200 code or network error, triggering an immediate incident notification via io.kestra.plugin.slack.notifications.SlackIncomingWebhook.CATALOG_QUOTA_EXCEEDED: Fires when total hosted repositories exceed max_repository_count, warning the DevOps channel and evaluating safe cleanup logging.HEALTHY: Confirms that the OCI registry is fully responsive and operating with healthy storage headroom.log_registry_audit_summary (io.kestra.plugin.core.log.Log) writes an immutable record of catalog depth and execution lineage.errors handler catches connection refusals or container crashes, firing an emergency alert to Slack.dry_run: true prevents inadvertent image deletions or mutations during audits.Zot serves OCI API endpoints but does not feature native scheduled alerting, webhook routing, or conditional operational workflows. Using custom cron scripts introduces maintenance overhead, hard-coded secrets, and zero execution visibility. Kestra provides a declarative YAML workflow with native scheduling, credential masking, conditional branching, and full execution observability.
ghcr.io/project-zot/zot-linux-amd64:latest) requiring zero commercial licensing.SLACK_WEBHOOK_URL: Slack incoming webhook URL for registry alerts and incident routing.docker run -d --name zot-test -p 5000:5000 ghcr.io/project-zot/zot-linux-amd64:latest
SLACK_WEBHOOK_URL in your Kestra namespace secrets.dry_run: true).log_healthy_state records a successful OCI ping and zero repository warnings.docker stop zot-test) and re-executing the flow to verify alert_zot_network_outage.periodic_zot_audit to activate continuous 15-minute registry health monitoring.io.kestra.plugin.scripts.shell.Commands.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for high-severity registry outages.