diff --git a/roles/run-docs/defaults/main.yaml b/roles/run-docs/defaults/main.yaml index f64d0f12..7a8e4426 100644 --- a/roles/run-docs/defaults/main.yaml +++ b/roles/run-docs/defaults/main.yaml @@ -1,2 +1,3 @@ --- -envlist: venv +tox_envlist: venv +zuul_work_dir: "src/{{ zuul.project.canonical_name }}" diff --git a/roles/run-docs/tasks/main.yaml b/roles/run-docs/tasks/main.yaml index ae828a6c..39668a62 100644 --- a/roles/run-docs/tasks/main.yaml +++ b/roles/run-docs/tasks/main.yaml @@ -1,4 +1,4 @@ - name: Execute run-docs.sh. - shell: "/usr/local/jenkins/slave_scripts/run-docs.sh {{ envlist }}" + shell: "/usr/local/jenkins/slave_scripts/run-docs.sh {{ tox_envlist }}" args: - chdir: "{{ zuul_workspace_root }}/src/{{ zuul.project.canonical_name }}" + chdir: "{{ zuul_work_dir }}"