From cc3c43052b5f969c28dca0aaa2a967869ba2afed Mon Sep 17 00:00:00 2001 From: Thore Cimbal Date: Wed, 19 Aug 2026 12:00:00 +0000 Subject: [PATCH] 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. --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c0752a..f3445ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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