Allow set custom priority for mass rebuild
This commit is contained in:
parent
41ef7e85f3
commit
2a24997eb4
|
@ -51,7 +51,7 @@ class Project < ActiveRecord::Base
|
||||||
|
|
||||||
include Modules::Models::Owner
|
include Modules::Models::Owner
|
||||||
|
|
||||||
def build_for(platform, user, arch = 'i586')
|
def build_for(platform, user, arch = 'i586', priority = 0)
|
||||||
# Select main and project platform repository(contrib, non-free and etc)
|
# Select main and project platform repository(contrib, non-free and etc)
|
||||||
# If main does not exist, will connect only project platform repository
|
# If main does not exist, will connect only project platform repository
|
||||||
# If project platform repository is main, only main will be connect
|
# If project platform repository is main, only main will be connect
|
||||||
|
@ -70,6 +70,7 @@ class Project < ActiveRecord::Base
|
||||||
bl.user = user
|
bl.user = user
|
||||||
bl.auto_publish = true # already set as db default
|
bl.auto_publish = true # already set as db default
|
||||||
bl.include_repos = build_ids
|
bl.include_repos = build_ids
|
||||||
|
bl.priority = priority
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue