From c08fbb5169e776e9bad4668a36227a738e74b813 Mon Sep 17 00:00:00 2001 From: Wen Ping Teh Date: Wed, 8 Jan 2025 12:01:04 +0000 Subject: [PATCH] ci: Add name to pipeline trigger for public MRs Change pipeline name to the MR number for pipeline trigger for public repo MR. This helps in identifying public MR pipeline more easily. Signed-off-by: Wen Ping Teh --- .gitlab/.gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 710e2785b..06716703a 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -1,6 +1,6 @@ # # Arm SCP/MCP Software -# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2024-2025, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -43,8 +43,12 @@ include: # Pipelines workflow rules workflow: + name: '$PIPELINE_NAME' rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $FETCH_PUBLIC_MR == "true" + variables: + PIPELINE_NAME: "Public MR#$FETCH_PUBLIC_MR_NUMBER" - if: $CI_PIPELINE_SOURCE == "web" - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_COMMIT_TAG -- GitLab