diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 14:59:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 14:59:16 +0300 |
commit | 8249158901ae0d88d3cf0f23084559c2ce8907a8 (patch) | |
tree | 9b9142fc85fb5a11fe988ae54e86521ea5fbd679 /lib/gitlab | |
parent | e6572d41b847c839ce49bc022a8cd1b99216798b (diff) |
Add latest changes from gitlab-org/security/gitlab@15-6-stable-ee
Diffstat (limited to 'lib/gitlab')
-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 |