Allow for specifying root job directory
The finger log streamer will look in the root job dir to find job logs. Change-Id: Ib585e04e890cf73bd254d3ba4e7ac3cf01cd342c
This commit is contained in:
@@ -79,8 +79,14 @@ class Executor(zuul.cmd.ZuulApp):
|
||||
|
||||
self.log = logging.getLogger("zuul.Executor")
|
||||
|
||||
jobroot_dir = None
|
||||
if self.config.has_option('zuul', 'jobroot_dir'):
|
||||
jobroot_dir = os.path.expanduser(
|
||||
self.config.get('zuul', 'jobroot_dir'))
|
||||
|
||||
ExecutorServer = zuul.executor.server.ExecutorServer
|
||||
self.executor = ExecutorServer(self.config, self.connections,
|
||||
jobdir_root=jobroot_dir,
|
||||
keep_jobdir=self.args.keep_jobdir)
|
||||
self.executor.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user