summaryrefslogtreecommitdiff
path: root/lib/tasks/plugins.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/plugins.rake')
-rw-r--r--lib/tasks/plugins.rake12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tasks/plugins.rake b/lib/tasks/plugins.rake
index 8728e232c9c..9c9f1fece85 100644
--- a/lib/tasks/plugins.rake
+++ b/lib/tasks/plugins.rake
@@ -27,13 +27,13 @@ namespace :plugins do
task validate: :environment do
puts 'Validating plugins from /plugins directory'
- Gitlab::Plugin.all.each do |plugin|
- begin
- plugin.new.execute(Gitlab::DataBuilder::Push::SAMPLE_DATA)
- rescue => e
- puts "- #{plugin} raised an exception during boot check. #{e}"
+ Gitlab::Plugin.files.each do |file|
+ result = Gitlab::Plugin.execute(file, Gitlab::DataBuilder::Push::SAMPLE_DATA)
+
+ if result
+ puts "* #{file} succeed (zero exit code)"
else
- puts "- #{plugin} passed validation check"
+ puts "* #{file} failure (non-zero exit code)"
end
end
end