From 1d8e2539cb798b525486ab133d965dd13a1c82e0 Mon Sep 17 00:00:00 2001 From: dfeldick Date: Tue, 11 Jun 2024 11:01:01 -0700 Subject: [PATCH] APIGOV-28112 - custom pipeline names --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d0616d..4f2e2c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,22 @@ variables: GOWORK: ${CI_PROJECT_DIR}/go.work GOFLAGS: "-mod=readonly" +######################################## +# set up custom names for the pipelines of releases and nightly schedules +######################################## + PIPELINE_NAME: "$CI_COMMIT_MESSAGE" + +workflow: + name: "$PIPELINE_NAME" + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" && $COMPONENT_TESTS_ONLY == "y" + variables: + PIPELINE_NAME: "Scheduled nightly tests" + - if: $CI_PIPELINE_SOURCE == "schedule" + variables: + PIPELINE_NAME: "Scheduled nightly CSR" + - when: always + include: - project: "apigov/gitlabci" ref: master