From 94cfbf2dafec9ced35c7dc80050d2d50fe926635 Mon Sep 17 00:00:00 2001 From: Wedge Date: Sun, 20 Mar 2016 16:36:03 +0300 Subject: [PATCH] More fixes --- app/models/build_list.rb | 11 ++++++----- config/resque_schedule.yml | 9 +-------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index bc872c7c1..db828f2f4 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -323,12 +323,13 @@ class BuildList < ActiveRecord::Base end def set_version_and_tag - pkg = self.packages.where(package_type: 'source', project_id: self.project_id).first + #TODO FIX THIS + #pkg = self.packages.where(package_type: 'source', project_id: self.project_id).first # TODO: remove 'return' after deployment ABF kernel 2.0 - return if pkg.nil? # For old client that does not sends data about packages - self.package_version = "#{pkg.platform.name}-#{pkg.version}-#{pkg.release}" - system("cd #{self.project.repo.path} && git tag #{self.package_version} #{self.commit_hash}") # TODO REDO through grit - save + #return if pkg.nil? # For old client that does not sends data about packages + #self.package_version = "#{pkg.platform.name}-#{pkg.version}-#{pkg.release}" + #system("cd #{self.project.repo.path} && git tag #{self.package_version} #{self.commit_hash}") # TODO REDO through grit + #save end def actualize_packages diff --git a/config/resque_schedule.yml b/config/resque_schedule.yml index 9b9ba8127..0e1404e28 100644 --- a/config/resque_schedule.yml +++ b/config/resque_schedule.yml @@ -38,11 +38,4 @@ run_extra_mass_builds: - '5m' class: 'RunExtraMassBuildsJob' queue: low - description: 'Run mass builds with relations' - -restart_nodes: - every: - - '5m' - class: 'RestartNodesJob' - queue: low - description: 'Restarts unavailable nodes' \ No newline at end of file + description: 'Run mass builds with relations' \ No newline at end of file