From 9d0a8f08121858405c643af9f0f5fd8564e7aaec Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Fri, 24 Apr 2020 11:33:03 +0200 Subject: [PATCH] Remove hardcoded use of /home/zuul Change-Id: Ib19ddc2221f9f387542bc6c0c758b47e94e42081 --- roles/build-container-image/tasks/build.yaml | 2 +- roles/build-docker-image/tasks/build.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/build-container-image/tasks/build.yaml b/roles/build-container-image/tasks/build.yaml index b5e5d0bf1..d7e5096b2 100644 --- a/roles/build-container-image/tasks/build.yaml +++ b/roles/build-container-image/tasks/build.yaml @@ -18,7 +18,7 @@ - name: Copy sibling source directories command: - cmd: 'cp --parents -r {{ sibling }} /home/zuul/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' + cmd: 'cp --parents -r {{ sibling }} {{ ansible_user_dir }}/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' chdir: '~/src' loop: '{{ item.siblings }}' loop_control: diff --git a/roles/build-docker-image/tasks/build.yaml b/roles/build-docker-image/tasks/build.yaml index cb6aa01fd..b080fd111 100644 --- a/roles/build-docker-image/tasks/build.yaml +++ b/roles/build-docker-image/tasks/build.yaml @@ -20,7 +20,7 @@ # Ansible 2.8 only. take the simple approach. - name: Copy sibling source directories command: - cmd: 'cp --parents -r {{ sibling }} /home/zuul/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' + cmd: 'cp --parents -r {{ sibling }} {{ ansible_user_dir }}/{{ zuul_work_dir }}/{{ item.context }}/.zuul-siblings' chdir: '~/src' loop: '{{ item.siblings }}' loop_control: