diff options
| author | Christiaan Van den Poel <christiaan.vandenpoel@gmail.com> | 2017-12-18 09:13:46 +0000 |
|---|---|---|
| committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-12-18 09:13:46 +0000 |
| commit | 7edbc0f8c8aa53a385353740ea6767bc48df4def (patch) | |
| tree | 4f99a696398283dac232a9d35e315eddba4bc69e /app/models/ci | |
| parent | cfb8d001eb105433b52c77f212774d22e2e8bb87 (diff) | |
| download | gitlab-ce-7edbc0f8c8aa53a385353740ea6767bc48df4def.tar.gz | |
Fix job count in pipeline success mail
Diffstat (limited to 'app/models/ci')
| -rw-r--r-- | app/models/ci/pipeline.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index eebbf7c4218..28f154581a9 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -228,6 +228,10 @@ module Ci statuses.select(:stage).distinct.count end + def total_size + statuses.count(:id) + end + def stages_names statuses.order(:stage_idx).distinct .pluck(:stage, :stage_idx).map(&:first) |
