summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-19 14:48:37 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-10-20 12:08:05 +0200
commitc9108442b5ac33514801c38412bed5e7b13677b8 (patch)
treef8876e90ccb9973c3cff21a3153dd5e9d8c08e13
parent1f949c0a6b08563f3abcd9fd4c9e750c4097b44b (diff)
downloadgitlab-ce-c9108442b5ac33514801c38412bed5e7b13677b8.tar.gz
Update duration at the end of pipelineupdate-duration-at-the-end-of-pipeline
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/models/ci/pipeline.rb3
2 files changed, 1 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dfde2cc81e5..cb43cb4b307 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ Please view this file on the master branch, on stable branches it's out of date.
- Add `/projects/visible` API endpoint (Ben Boeckel)
- Fix centering of custom header logos (Ashley Dumaine)
- Keep around commits only pipeline creation as pipeline data doesn't change over time
+ - Update duration at the end of pipeline
- ExpireBuildArtifactsWorker query builds table without ordering enqueuing one job per build to cleanup
- Add group level labels. (!6425)
- Add an example for testing a phoenix application with Gitlab CI in the docs (Manthan Mallikarjun)
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index e84c91b417d..d5c1e03b461 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -59,9 +59,6 @@ module Ci
before_transition any => [:success, :failed, :canceled] do |pipeline|
pipeline.finished_at = Time.now
- end
-
- before_transition do |pipeline|
pipeline.update_duration
end