diff options
Diffstat (limited to 'lib/gitlab/ci/pipeline/chain/populate.rb')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/populate.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/populate.rb b/lib/gitlab/ci/pipeline/chain/populate.rb index d1f57ca68e7..3f8745b4ab1 100644 --- a/lib/gitlab/ci/pipeline/chain/populate.rb +++ b/lib/gitlab/ci/pipeline/chain/populate.rb @@ -41,10 +41,16 @@ module Gitlab @command.yaml_processor_result.workflow_name.blank? name = @command.yaml_processor_result.workflow_name + name = ExpandVariables.expand(name, -> { global_context.variables.sort_and_expand_all }) pipeline.build_pipeline_metadata(project: pipeline.project, name: name) end + def global_context + Gitlab::Ci::Build::Context::Global.new( + pipeline, yaml_variables: @command.pipeline_seed.root_variables) + end + def stage_names # We filter out `.pre/.post` stages, as they alone are not considered # a complete pipeline: |