Expose workflow:name as a predefined CI variable
Release notes
Pipeline names defined via the workflow:name
keyword are now accessible via the predefined variable $CI_PIPELINE_NAME
.
Problem to solve
Pipeline names can now be set, but cannot be accessed, unless you set workflow:name
to a variable, and define the variable (either in the yaml or by passing it when triggering the pipeline).
Proposal
Expose the name of a pipeline as a predefined variable somewhere around https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/variables/builder/pipeline.rb#L16
Intended users
Feature Usage Metrics
Edited by Jamie Reid