diff options
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index c5e6e0d46d2..94c1205a22e 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -700,23 +700,6 @@ module Ci end end - # Virtual deployment status depending on the environment status. - # def deployment_status - # last_deployment.detailed_status - # end - - # def deployment_status - # return nil unless starts_environment? - - # if success? - # return successful_deployment_status - # elsif complete? && !success? - # return :failed - # end - - # :creating - # end - private def erase_old_artifacts! @@ -726,16 +709,6 @@ module Ci save end - def successful_deployment_status - if success? && last_deployment&.last? - return :last - elsif success? && last_deployment.present? - return :out_of_date - end - - :creating - end - def each_report(report_types) job_artifacts_for_types(report_types).each do |report_artifact| report_artifact.each_blob do |blob| |