Expose the jobdir git root as a variable

This way the pre-playbook that pushes the git repo onto the worker
knows where to find the git repos.

Change-Id: Id7c924540add867e720a77a019e86a842e27457b
This commit is contained in:
James E. Blair 2017-02-22 15:17:07 -05:00
parent 86ce4f10e2
commit bb85e6f05c
1 changed files with 1 additions and 0 deletions

View File

@ -777,6 +777,7 @@ class AnsibleJob(object):
with open(self.jobdir.vars, 'w') as vars_yaml:
zuul_vars = dict(zuul=args['zuul'])
zuul_vars['zuul']['launcher'] = dict(git_root=self.jobdir.git_root)
vars_yaml.write(
yaml.safe_dump(zuul_vars, default_flow_style=False))
self.writeAnsibleConfig(self.jobdir.config)