diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2016-02-01 15:46:02 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-19 19:24:59 +0300 |
commit | f3e92fb4d04f69deddcf1daf3dde8a79cf942bd5 (patch) | |
tree | c905f61fd3e46a41e3e847eec5d97c1bd57f829c /app/models/ci/build.rb | |
parent | c8102d938bf8f1c73058281b2724730c6d88a53b (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.rb | 4 |
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) |