[xenomai-images][PATCH v2] ci: Give pipelines a name
Jan Kiszka <[email protected]>
| Newsgroups | dev.linux.lists.xenomai |
|---|---|
| Message-ID | <[email protected]> |
From: Jan Kiszka <[email protected]> This should help to identify why a pipeline was started here, regular push, external repo trigger, schedule. Requires that the xenomai 3 CI sets the TRIGGER_SOURCE variable before issuing the trigger. Signed-off-by: Jan Kiszka <[email protected]> --- Changes in v2: - drop inconsistent quotes for scheduled runs .gitlab-ci.yml | 20 +++++++++++++++++++- ci/trigger/dovetail.yml | 1 + ci/trigger/evl.yml | 1 + ci/trigger/libevl.yml | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f810dd7..b3d025e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 - 2025 +# Copyright (c) Siemens AG, 2019 - 2026 # # Authors: # Quirin Gylstorff <[email protected]> @@ -13,6 +13,24 @@ variables: LAVA_TESTS_ENABLED: "true" ALL_QEMU_JOBS: "false" CONTAINER_REGISTRY: "registry.gitlab.com" + PIPELINE_NAME: "Branch changed: $CI_COMMIT_BRANCH" + +workflow: + name: "$PIPELINE_NAME" + rules: + - if: '$CI_PIPELINE_SOURCE == "pipeline"' + variables: + PIPELINE_NAME: "Trigger: $TRIGGER_SOURCE" + - if: '$CI_PIPELINE_SOURCE == "schedule"' + variables: + PIPELINE_NAME: "Schedule: $ONLY_RUN" + - if: '$CI_PIPELINE_SOURCE == "web" && $ONLY_RUN != ""' + variables: + PIPELINE_NAME: "Manual: $ONLY_RUN" + - if: '$CI_PIPELINE_SOURCE == "web"' + variables: + PIPELINE_NAME: "Manual run" + - when: always stages: - parent diff --git a/ci/trigger/dovetail.yml b/ci/trigger/dovetail.yml index 633ebc4..b904c1a 100644 --- a/ci/trigger/dovetail.yml +++ b/ci/trigger/dovetail.yml @@ -59,5 +59,6 @@ trigger-xenomai-images: KERNEL_VERSION: $KERNEL_VERSION KERNEL_VERSION_WITH_QEMU: $KERNEL_VERSION ONLY_RUN: xenomai-3/dovetail + TRIGGER_SOURCE: linux-dovetail/$KERNEL_VERSION rules: - if: '$KERNEL_VERSION != ""' diff --git a/ci/trigger/evl.yml b/ci/trigger/evl.yml index fdbd15d..fe87bcb 100644 --- a/ci/trigger/evl.yml +++ b/ci/trigger/evl.yml @@ -59,5 +59,6 @@ trigger-xenomai-images: KERNEL_VERSION: $KERNEL_VERSION KERNEL_VERSION_WITH_QEMU: $KERNEL_VERSION ONLY_RUN: xenomai-4/evl + TRIGGER_SOURCE: linux-evl/$KERNEL_VERSION rules: - if: '$KERNEL_VERSION != ""' diff --git a/ci/trigger/libevl.yml b/ci/trigger/libevl.yml index ece5f06..bb996b4 100644 --- a/ci/trigger/libevl.yml +++ b/ci/trigger/libevl.yml @@ -19,6 +19,7 @@ trigger-xenomai-images: stage: trigger_xenomai_images variables: ONLY_RUN: xenomai-4/${CI_COMMIT_BRANCH} + TRIGGER_SOURCE: libevl/next trigger: project: xenomai/xenomai-images branch: next -- 2.47.3