summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/external/mapper/matcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/config/external/mapper/matcher.rb')
-rw-r--r--lib/gitlab/ci/config/external/mapper/matcher.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gitlab/ci/config/external/mapper/matcher.rb b/lib/gitlab/ci/config/external/mapper/matcher.rb
index 85e19ff1ced..e59eaa6d324 100644
--- a/lib/gitlab/ci/config/external/mapper/matcher.rb
+++ b/lib/gitlab/ci/config/external/mapper/matcher.rb
@@ -10,6 +10,7 @@ module Gitlab
FILE_CLASSES = [
External::File::Local,
External::File::Project,
+ External::File::Component,
External::File::Remote,
External::File::Template,
External::File::Artifact
@@ -29,11 +30,11 @@ module Gitlab
matching.first
elsif matching.empty?
raise Mapper::AmbigiousSpecificationError,
- "`#{masked_location(location.to_json)}` does not have a valid subkey for include. " \
- "Valid subkeys are: `#{FILE_SUBKEYS.join('`, `')}`"
+ "`#{masked_location(location.to_json)}` does not have a valid subkey for include. " \
+ "Valid subkeys are: `#{FILE_SUBKEYS.join('`, `')}`"
else
raise Mapper::AmbigiousSpecificationError,
- "Each include must use only one of: `#{FILE_SUBKEYS.join('`, `')}`"
+ "Each include must use only one of: `#{FILE_SUBKEYS.join('`, `')}`"
end
end
end