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
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

View File

@ -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'
description: 'Run mass builds with relations'