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:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2016-02-01 15:46:02 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-19 19:24:59 +0300
commitf3e92fb4d04f69deddcf1daf3dde8a79cf942bd5 (patch)
treec905f61fd3e46a41e3e847eec5d97c1bd57f829c /app/models/ci/build.rb
parentc8102d938bf8f1c73058281b2724730c6d88a53b (diff)
Make CI build eraseable only if build is completed
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r--app/models/ci/build.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index ff100a31e7c..33bc4128312 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -205,6 +205,10 @@ module Ci
end
end
+ def trace_empty?
+ raw_trace.blank?
+ end
+
def raw_trace
if File.file?(path_to_trace)
File.read(path_to_trace)