ci: close the same empty-pipeline gap here before it opens

gitops produced a red pipeline with no jobs today because nothing guarded pipeline
creation. This repo has the same shape: its three jobs cover schedule, web and push,
so an API-triggered pipeline matches none of them and would be created empty and
marked failed.

Nobody triggers this repo by API today, which is why it has not happened yet - not a
reason to leave it. One block, and the class is gone in both places.
This commit is contained in:
Thore Cimbal
2026-08-19 12:00:00 +00:00
parent bb4bbd711b
commit cc3c43052b
+12
View File
@@ -5,6 +5,18 @@
# die Retro vom 2026-08-09: sechs solcher Faelle in neun Tagen, keiner davon durch
# eine Ueberwachung gefunden.
# Ohne workflow-Block legt GitLab auch dann eine Pipeline an, wenn KEIN Job auf sie
# passt, und fuehrt sie als "failed" - rot ohne Fehler, genau das, wogegen #0104
# angeht. Die drei Jobs unten decken schedule, web und push ab; ein API-Trigger
# traefe keinen davon. Im gitops-Repo ist dieser Fall am 2026-08-19 real eingetreten
# (Pipeline 518), hier wird er vorbeugend ausgeschlossen.
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "push"
- when: never
stages:
- pruefen