From 9cff3f8f5282633fd0c5920e3b6d277415ae9000 Mon Sep 17 00:00:00 2001 From: Timothy Andrew Date: Wed, 7 Sep 2016 14:11:24 +0530 Subject: Test the `test` cycle analytics phase. --- app/models/cycle_analytics/queries.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/cycle_analytics') diff --git a/app/models/cycle_analytics/queries.rb b/app/models/cycle_analytics/queries.rb index 2d134a0d9a4..32c49ec52ba 100644 --- a/app/models/cycle_analytics/queries.rb +++ b/app/models/cycle_analytics/queries.rb @@ -54,7 +54,7 @@ class CycleAnalytics tip = merge_request.commits.first return unless tip - pipeline = Ci::Pipeline.find_by_sha(tip.sha) + pipeline = Ci::Pipeline.success.find_by_sha(tip.sha) pipeline.started_at if pipeline end end @@ -65,7 +65,7 @@ class CycleAnalytics tip = merge_request.commits.first return unless tip - pipeline = Ci::Pipeline.find_by_sha(tip.sha) + pipeline = Ci::Pipeline.success.find_by_sha(tip.sha) pipeline.finished_at if pipeline end end -- cgit v1.2.1