phase1: enable shared work directory by default
authorJo-Philipp Wich <jo@mein.io>
Tue, 16 Jul 2019 17:18:08 +0000 (19:18 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 16 Jul 2019 17:18:08 +0000 (19:18 +0200)
Enable work directory sharing for any slave having a concurrent build limit
of one job.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index cd951e06c5f6a2be7dfae35360f0fa6dacb3999b..46e1a7259ad2c3488702ca2eceb4fc7050f69f38 100644 (file)
@@ -62,6 +62,8 @@ for section in ini.sections():
                        if ini.has_option(section, "builds"):
                                max_builds = ini.getint(section, "builds")
                                sl_props['max_builds'] = max_builds
+                               if max_builds == 1:
+                                       sl_props['shared_wd'] = True
                        if ini.has_option(section, "cleanup"):
                                sl_props['do_cleanup'] = ini.getboolean(section, "cleanup")
                        if ini.has_option(section, "dl_lock"):