export MOCK_CACHE = 'True' to docker builders

When build is started with cached chroot export environment variable MOCK_CACHE with 'True' value so docker-builder script build-rpm.sh can make use of it.

When build is started without cached chroot then MOCK_CACHE is empty
This commit is contained in:
Tomasz Paweł Gajc 2018-03-19 19:34:48 +01:00 committed by GitHub
parent 233e6eb96c
commit df8bea13ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ class BuildList < ActiveRecord::Base
if use_cached_chroot? if use_cached_chroot?
sha1 = build_for_platform.cached_chroot(arch.name) sha1 = build_for_platform.cached_chroot(arch.name)
cmd_params.merge!('CACHED_CHROOT_SHA1' => sha1) if sha1.present? cmd_params.merge!('CACHED_CHROOT_SHA1' => sha1) if sha1.present?
cmd_params.merge!('MOCK_CACHE' => 'True')
end end
#cmd_params = cmd_params.map{ |k, v| "#{k}='#{v}'" }.join(' ') #cmd_params = cmd_params.map{ |k, v| "#{k}='#{v}'" }.join(' ')