Allow for specifying root job directory

The finger log streamer will look in the root job dir to
find job logs.

Change-Id: Ib585e04e890cf73bd254d3ba4e7ac3cf01cd342c
changes/91/456691/7
David Shrewsbury 6 years ago
parent 4dd45f5e1b
commit d678429560
  1. 4
      doc/source/zuul.rst
  2. 6
      zuul/cmd/executor.py

@ -108,6 +108,10 @@ layout.yaml to be useful.
commands.
``state_dir=/var/lib/zuul``
**jobroot_dir**
Path to directory that Zuul should store temporary job files.
``jobroot_dir=/tmp``
**report_times**
Boolean value (``true`` or ``false``) that determines if Zuul should
include elapsed times for each job in the textual report. Used by

@ -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()

Loading…
Cancel
Save