Skip to contentSkip to conversation

CI: Change pipeline name for scheduled pipeline

PATCH In review Anthony PERARD 2 participants 2 messages Mar 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Change pipeline name for scheduled pipeline

This description is already displayed on the web UI of the list of pipeline, but using it as "name" will make it available in webhooks as well and can be used by a bot.

This doesn't change the behavior for other pipeline types, where the variable isn't set.

---

Notes:
doc:
https://docs.gitlab.com/ci/yaml/#workflowname
https://docs.gitlab.com/ci/variables/predefined_variables/#predefined-variables

 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
.gitlab-ci.yml +1 -0
index b3beb2ff9d..7974ac4e82 100644
@@ -4,6 +4,7 @@ variables:
     description: "Regex to select only some jobs, must be enclosed with /. For example /job1|job2/"
 
 workflow:
+  name: "$CI_PIPELINE_SCHEDULE_DESCRIPTION"
   rules:
     - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
       when: never
Signature · 5 lines
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Anthony PERARD

This description is already displayed on the web UI of the list of pipeline, but using it as "name" will make it available in webhooks as well and can be used by a bot.

This doesn't change the behavior for other pipeline types, where the variable isn't set.

Quoted 31 lines

---

Notes:
doc:
https://docs.gitlab.com/ci/yaml/#workflowname
https://docs.gitlab.com/ci/variables/predefined_variables/#predefined-variables

 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
.gitlab-ci.yml +1 -0
index b3beb2ff9d..7974ac4e82 100644
@@ -4,6 +4,7 @@ variables:
     description: "Regex to select only some jobs, must be enclosed with /. For example /job1|job2/"
 
 workflow:
+  name: "$CI_PIPELINE_SCHEDULE_DESCRIPTION"
   rules:
     - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
       when: never
Signature · 5 lines
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech