More fixes

This commit is contained in:
Wedge 2016-03-20 16:36:03 +03:00
parent a1fa153c1e
commit 94cfbf2daf
2 changed files with 7 additions and 13 deletions

View File

@ -323,12 +323,13 @@ class BuildList < ActiveRecord::Base
end end
def set_version_and_tag 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 # TODO: remove 'return' after deployment ABF kernel 2.0
return if pkg.nil? # For old client that does not sends data about packages #return if pkg.nil? # For old client that does not sends data about packages
self.package_version = "#{pkg.platform.name}-#{pkg.version}-#{pkg.release}" #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 #system("cd #{self.project.repo.path} && git tag #{self.package_version} #{self.commit_hash}") # TODO REDO through grit
save #save
end end
def actualize_packages def actualize_packages

View File

@ -39,10 +39,3 @@ run_extra_mass_builds:
class: 'RunExtraMassBuildsJob' class: 'RunExtraMassBuildsJob'
queue: low queue: low
description: 'Run mass builds with relations' description: 'Run mass builds with relations'
restart_nodes:
every:
- '5m'
class: 'RestartNodesJob'
queue: low
description: 'Restarts unavailable nodes'