From df8bea13ac1f31d2d8192d95d6226fd616bfcf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Pawe=C5=82=20Gajc?= Date: Mon, 19 Mar 2018 19:34:48 +0100 Subject: [PATCH] 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 --- app/models/build_list.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index ebaf623e6..772e614b0 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -525,6 +525,7 @@ class BuildList < ActiveRecord::Base if use_cached_chroot? sha1 = build_for_platform.cached_chroot(arch.name) cmd_params.merge!('CACHED_CHROOT_SHA1' => sha1) if sha1.present? + cmd_params.merge!('MOCK_CACHE' => 'True') end #cmd_params = cmd_params.map{ |k, v| "#{k}='#{v}'" }.join(' ')