[XEN PATCH] CI: Change pipeline name for scheduled pipeline

Anthony PERARD posted 1 patch 7 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250327103345.21306-1-anthony.perard@vates.tech
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
[XEN PATCH] CI: Change pipeline name for scheduled pipeline
Posted by Anthony PERARD 7 months, 1 week ago
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.

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
---

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(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b3beb2ff9d..7974ac4e82 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
-- 


Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
Re: [XEN PATCH] CI: Change pipeline name for scheduled pipeline
Posted by Stefano Stabellini 7 months, 1 week ago
On Thu, 27 Mar 2025, Anthony PERARD wrote:
> 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.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
> 
> 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(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index b3beb2ff9d..7974ac4e82 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -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
> -- 
> 
> 
> Anthony Perard | Vates XCP-ng Developer
> 
> XCP-ng & Xen Orchestra - Vates solutions
> 
> web: https://vates.tech
>