diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 11:59:16 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 11:59:16 +0000 |
commit | 8249158901ae0d88d3cf0f23084559c2ce8907a8 (patch) | |
tree | 9b9142fc85fb5a11fe988ae54e86521ea5fbd679 /lib | |
parent | e6572d41b847c839ce49bc022a8cd1b99216798b (diff) | |
download | gitlab-ce-8249158901ae0d88d3cf0f23084559c2ce8907a8.tar.gz |
Add latest changes from gitlab-org/security/gitlab@15-6-stable-ee
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/populate_metadata.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/populate_metadata.rb b/lib/gitlab/ci/pipeline/chain/populate_metadata.rb index 35b907b669c..89befb2a65b 100644 --- a/lib/gitlab/ci/pipeline/chain/populate_metadata.rb +++ b/lib/gitlab/ci/pipeline/chain/populate_metadata.rb @@ -28,7 +28,9 @@ module Gitlab 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) + return if name.blank? + + pipeline.build_pipeline_metadata(project: pipeline.project, name: name.strip) end def global_context |