Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-07 11:41:24 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-09-07 11:41:24 +0300
commit9cff3f8f5282633fd0c5920e3b6d277415ae9000 (patch)
tree824edd739ed7de9d3ec0ffb768d65c88ffc4f1c3 /app/models/cycle_analytics
parentde483c6834153b75403633b42f20b0c85eae35e7 (diff)
Test the `test` cycle analytics phase.
Diffstat (limited to 'app/models/cycle_analytics')
-rw-r--r--app/models/cycle_analytics/queries.rb4
1 files changed, 2 insertions, 2 deletions
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