diff --git a/playbooks/legacy/announce-release/post.yaml b/playbooks/legacy/announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/announce-release/post.yaml +++ b/playbooks/legacy/announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/announce-release/run.yaml b/playbooks/legacy/announce-release/run.yaml index 512d5e7f..04e964c5 100644 --- a/playbooks/legacy/announce-release/run.yaml +++ b/playbooks/legacy/announce-release/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-announce-release from old job {name}-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,6 +75,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,6 +85,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -93,4 +102,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-centos-7/post.yaml b/playbooks/legacy/ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-func-centos-7/run.yaml b/playbooks/legacy/ansible-func-centos-7/run.yaml index 2de9245d..62f1d24b 100644 --- a/playbooks/legacy/ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/ansible-func-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-func-centos-7 from old job gate-{name}-ansible-func-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,6 +39,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +54,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +81,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +96,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-fedora-26/post.yaml b/playbooks/legacy/ansible-func-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-func-fedora-26/post.yaml +++ b/playbooks/legacy/ansible-func-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-func-fedora-26/run.yaml b/playbooks/legacy/ansible-func-fedora-26/run.yaml index 74e9489d..e6c5b69f 100644 --- a/playbooks/legacy/ansible-func-fedora-26/run.yaml +++ b/playbooks/legacy/ansible-func-fedora-26/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-func-fedora-26 from old job gate-{name}-ansible-func-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,6 +39,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +54,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +81,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +96,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-opensuse-423/post.yaml b/playbooks/legacy/ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-func-opensuse-423/run.yaml b/playbooks/legacy/ansible-func-opensuse-423/run.yaml index e1bd5f94..6f8f8401 100644 --- a/playbooks/legacy/ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/ansible-func-opensuse-423/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-func-opensuse-423 from old job gate-{name}-ansible-func-opensuse-423 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,6 +39,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +54,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +81,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +96,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml b/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml b/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml index 773f0906..adea0ae6 100644 --- a/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-func-ubuntu-trusty from old job gate-{name}-ansible-func-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,6 +39,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +54,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +81,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +96,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func/post.yaml b/playbooks/legacy/ansible-func/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-func/post.yaml +++ b/playbooks/legacy/ansible-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-func/run.yaml b/playbooks/legacy/ansible-func/run.yaml index 3c653ec9..3376efcf 100644 --- a/playbooks/legacy/ansible-func/run.yaml +++ b/playbooks/legacy/ansible-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-func from old job gate-{name}-ansible-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,6 +39,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +54,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +81,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +96,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-announce-release/post.yaml b/playbooks/legacy/ansible-hardening-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ansible-hardening-announce-release/post.yaml +++ b/playbooks/legacy/ansible-hardening-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-hardening-announce-release/run.yaml b/playbooks/legacy/ansible-hardening-announce-release/run.yaml index 2c256fe5..0c5f5422 100644 --- a/playbooks/legacy/ansible-hardening-announce-release/run.yaml +++ b/playbooks/legacy/ansible-hardening-announce-release/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-hardening-announce-release from old job ansible-hardening-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,6 +75,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,6 +85,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -93,4 +102,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml index 987e8dd5..7b8b978a 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml @@ -3,6 +3,11 @@ old job gate-ansible-hardening-ansible-func-debian-jessie tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml index d5d70351..993824e2 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml @@ -3,6 +3,11 @@ job gate-ansible-hardening-ansible-func-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml index 5d7a76ac..beb2818b 100644 --- a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-ansible-hardening-ansible-func_rhel6-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_rhel6 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-lint/run.yaml b/playbooks/legacy/ansible-lint/run.yaml index c84570a1..7261a949 100644 --- a/playbooks/legacy/ansible-lint/run.yaml +++ b/playbooks/legacy/ansible-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ansible-lint from old job gate-{name}-ansible-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ set -x sudo -H pip install -U ansible executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ set -x sudo -H pip install ansible-lint executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +66,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +76,7 @@ cd tests ansible-playbook --syntax-check -i inventory test.yml -e rolename=$(basename $(dirname $(pwd))) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +85,5 @@ set -x ansible-lint **/*.yml executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml b/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml b/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml index a0ff7fbc..e63a59b8 100644 --- a/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-functional-hbase from old job gate-aodh-dsvm-functional-hbase-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml b/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml b/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml index 0420743f..243c14b4 100644 --- a/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-functional-mongodb from old job gate-aodh-dsvm-functional-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml b/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml b/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml index d8cd437c..e19058e4 100644 --- a/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-functional-mysql from old job gate-aodh-dsvm-functional-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml b/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml b/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml index c391299d..ce65ceb7 100644 --- a/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml +++ b/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-functional-postgresql from old job gate-aodh-dsvm-functional-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml index 8e781114..62f64274 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-hbase from old job gate-aodh-dsvm-tempest-plugin-hbase-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml index 89406116..7c67b352 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mongodb from old job gate-aodh-dsvm-tempest-plugin-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml index 452cfd3e..f1f4af20 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mysql from old job gate-aodh-dsvm-tempest-plugin-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml index 7fd5e928..214f3425 100644 --- a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml @@ -3,6 +3,11 @@ gate-aodh-dsvm-tempest-plugin-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-guide/post.yaml b/playbooks/legacy/api-guide/post.yaml index 8f84cf81..17510eaf 100644 --- a/playbooks/legacy/api-guide/post.yaml +++ b/playbooks/legacy/api-guide/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -22,9 +22,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -35,9 +35,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -48,9 +48,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -61,9 +61,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/api-guide/run.yaml b/playbooks/legacy/api-guide/run.yaml index 4afb297a..c3229b0b 100644 --- a/playbooks/legacy/api-guide/run.yaml +++ b/playbooks/legacy/api-guide/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-api-guide from old job gate-{name}-api-guide tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-guide + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-ref/post.yaml b/playbooks/legacy/api-ref/post.yaml index 75275036..e7ab1197 100644 --- a/playbooks/legacy/api-ref/post.yaml +++ b/playbooks/legacy/api-ref/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -22,9 +22,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -35,9 +35,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -48,9 +48,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -61,9 +61,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/api-ref/run.yaml b/playbooks/legacy/api-ref/run.yaml index b29a149e..9ec74f44 100644 --- a/playbooks/legacy/api-ref/run.yaml +++ b/playbooks/legacy/api-ref/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-api-ref from old job gate-{name}-api-ref tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-ref + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-propose-translation-update/post.yaml b/playbooks/legacy/api-site-propose-translation-update/post.yaml index 3a9a82f1..89ec2c2f 100644 --- a/playbooks/legacy/api-site-propose-translation-update/post.yaml +++ b/playbooks/legacy/api-site-propose-translation-update/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/api-site-propose-translation-update/run.yaml b/playbooks/legacy/api-site-propose-translation-update/run.yaml index b1e39e18..7d81a484 100644 --- a/playbooks/legacy/api-site-propose-translation-update/run.yaml +++ b/playbooks/legacy/api-site-propose-translation-update/run.yaml @@ -3,6 +3,11 @@ api-site-propose-translation-update tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -10,6 +15,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -19,6 +25,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,6 +62,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +71,5 @@ set -x /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME master {name}-propose-translation-update{suffix} executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml b/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml index 5a81ee20..6d5675d6 100644 --- a/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml +++ b/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml b/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml index fb1f9b23..7a46c5d9 100644 --- a/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml +++ b/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-api-site-tox-doc-publish-checklang from old job gate-api-site-tox-doc-publish-checklang tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checklang + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +74,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-upstream-translation-update/post.yaml b/playbooks/legacy/api-site-upstream-translation-update/post.yaml index 52a9f8fb..dd54b695 100644 --- a/playbooks/legacy/api-site-upstream-translation-update/post.yaml +++ b/playbooks/legacy/api-site-upstream-translation-update/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -33,9 +33,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -46,9 +46,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -59,9 +59,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -72,9 +72,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -85,9 +85,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/api-site-upstream-translation-update/run.yaml b/playbooks/legacy/api-site-upstream-translation-update/run.yaml index f6a42f3b..c761fd6f 100644 --- a/playbooks/legacy/api-site-upstream-translation-update/run.yaml +++ b/playbooks/legacy/api-site-upstream-translation-update/run.yaml @@ -3,6 +3,11 @@ api-site-upstream-translation-update tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -10,6 +15,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -19,6 +25,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +69,5 @@ set -x /usr/local/jenkins/slave_scripts/upstream_translation_update.sh $ZUUL_SHORT_PROJECT_NAME {name}-upstream-translation-update executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml index 0e6d0258..bbac14e3 100644 --- a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-app-catalog-nodejs4-npm-run-lint from old job gate-app-catalog-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml b/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml index c3ff34a4..5aa243df 100644 --- a/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml +++ b/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/screenshots' mode: pull copy_links: true diff --git a/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml b/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml index 33797565..70849c5b 100644 --- a/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml +++ b/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-app-catalog-ui-dsvm-integration from old job gate-app-catalog-ui-dsvm-integration tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,18 +20,21 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml index 1874649b..1e0a19b0 100644 --- a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ gate-app-catalog-ui-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml index e29bbdeb..98ca0afc 100644 --- a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-ara-integration-openstack-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -27,6 +32,7 @@ openstack/requirements cp $REQS_DIR/upper-constraints.txt ./ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,10 +46,12 @@ sudo yum-config-manager --enable epel sudo yum-config-manager --enable updates fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +62,7 @@ if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then sudo yum-config-manager --disable epel fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,9 +72,11 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml +++ b/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml index 8dd46105..7bd6cf7c 100644 --- a/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml +++ b/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-openstack-ansible-func-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -27,6 +32,7 @@ openstack/requirements cp $REQS_DIR/upper-constraints.txt ./ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,10 +46,12 @@ sudo yum-config-manager --enable epel sudo yum-config-manager --enable updates fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +62,7 @@ if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then sudo yum-config-manager --disable epel fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,9 +72,11 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml +++ b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml index df005776..c82e2973 100644 --- a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml +++ b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-py27-2.2.3.0-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ set -x ./run_tests.sh --python py27 --ansible 2.2.3.0 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml +++ b/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml index a6765f62..f7d8b5aa 100644 --- a/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml +++ b/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-py27-devel-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ set -x ./run_tests.sh --python py27 --ansible devel executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml +++ b/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml index cd0d33de..337078d1 100644 --- a/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml +++ b/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-py27-latest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ set -x ./run_tests.sh --python py27 --ansible latest executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml b/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml +++ b/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml b/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml index 1dda0e4c..2e7d2588 100644 --- a/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml +++ b/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-py35-devel-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ set -x ./run_tests.sh --python py35 --ansible devel executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-devel/post.yaml b/playbooks/legacy/ara-integration-py35-devel/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py35-devel/post.yaml +++ b/playbooks/legacy/ara-integration-py35-devel/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py35-devel/run.yaml b/playbooks/legacy/ara-integration-py35-devel/run.yaml index 9742264f..b6859cee 100644 --- a/playbooks/legacy/ara-integration-py35-devel/run.yaml +++ b/playbooks/legacy/ara-integration-py35-devel/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ara-integration-py35-devel from old job gate-ara-integration-py35-devel-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +47,5 @@ set -x ./run_tests.sh --python py35 --ansible devel executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml b/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml +++ b/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml b/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml index 010f32c5..404b8e9c 100644 --- a/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml +++ b/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml @@ -3,6 +3,11 @@ gate-ara-integration-py35-latest-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ set -x ./run_tests.sh --python py35 --ansible latest executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-latest/post.yaml b/playbooks/legacy/ara-integration-py35-latest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ara-integration-py35-latest/post.yaml +++ b/playbooks/legacy/ara-integration-py35-latest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ara-integration-py35-latest/run.yaml b/playbooks/legacy/ara-integration-py35-latest/run.yaml index 77c4e8bd..425451cf 100644 --- a/playbooks/legacy/ara-integration-py35-latest/run.yaml +++ b/playbooks/legacy/ara-integration-py35-latest/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ara-integration-py35-latest from old job gate-ara-integration-py35-latest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +47,5 @@ set -x ./run_tests.sh --python py35 --ansible latest executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/astara-appliance-buildimage/post.yaml b/playbooks/legacy/astara-appliance-buildimage/post.yaml index 0fb1647c..01d811b7 100644 --- a/playbooks/legacy/astara-appliance-buildimage/post.yaml +++ b/playbooks/legacy/astara-appliance-buildimage/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images' mode: pull copy_links: true diff --git a/playbooks/legacy/astara-appliance-buildimage/run.yaml b/playbooks/legacy/astara-appliance-buildimage/run.yaml index 7ba41c6d..3d9cffb7 100644 --- a/playbooks/legacy/astara-appliance-buildimage/run.yaml +++ b/playbooks/legacy/astara-appliance-buildimage/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-astara-appliance-buildimage from old job astara-appliance-buildimage-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ sudo apt-get install -y qemu kpartx debootstrap sudo -H pip install dib-utils sudo -H pip install diskimage-builder + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ fi mv build/astara_appliance*.qcow2 $WORKSPACE/astara_appliance$branch_tag.qcow2 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-barbican/run.yaml b/playbooks/legacy/bandit-integration-barbican/run.yaml index 3095997e..c2ba7d0b 100644 --- a/playbooks/legacy/bandit-integration-barbican/run.yaml +++ b/playbooks/legacy/bandit-integration-barbican/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-barbican from old job gate-bandit-integration-barbican tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack barbican \ $WORKSPACE/openstack/barbican executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-glance/run.yaml b/playbooks/legacy/bandit-integration-glance/run.yaml index 9aaf06fc..2442220f 100644 --- a/playbooks/legacy/bandit-integration-glance/run.yaml +++ b/playbooks/legacy/bandit-integration-glance/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-glance from old job gate-bandit-integration-glance tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack glance \ $WORKSPACE/openstack/glance executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-glance_store/run.yaml b/playbooks/legacy/bandit-integration-glance_store/run.yaml index 13e16007..b0027ee6 100644 --- a/playbooks/legacy/bandit-integration-glance_store/run.yaml +++ b/playbooks/legacy/bandit-integration-glance_store/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-glance_store from old job gate-bandit-integration-glance_store tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack glance_store \ $WORKSPACE/openstack/glance_store executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-keystone/run.yaml b/playbooks/legacy/bandit-integration-keystone/run.yaml index 01449362..341dfc4f 100644 --- a/playbooks/legacy/bandit-integration-keystone/run.yaml +++ b/playbooks/legacy/bandit-integration-keystone/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-keystone from old job gate-bandit-integration-keystone tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack keystone \ $WORKSPACE/openstack/keystone executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml b/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml index dcd8d034..c6102c65 100644 --- a/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml +++ b/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml @@ -3,8 +3,14 @@ gate-bandit-integration-keystonemiddleware tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,4 +30,5 @@ tox -e integration openstack keystonemiddleware \ $WORKSPACE/openstack/keystonemiddleware executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-magnum/run.yaml b/playbooks/legacy/bandit-integration-magnum/run.yaml index 9770f23c..3efcf52f 100644 --- a/playbooks/legacy/bandit-integration-magnum/run.yaml +++ b/playbooks/legacy/bandit-integration-magnum/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-magnum from old job gate-bandit-integration-magnum tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack magnum \ $WORKSPACE/openstack/magnum executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.config/run.yaml b/playbooks/legacy/bandit-integration-oslo.config/run.yaml index 762de40c..40bd490b 100644 --- a/playbooks/legacy/bandit-integration-oslo.config/run.yaml +++ b/playbooks/legacy/bandit-integration-oslo.config/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-oslo.config from old job gate-bandit-integration-oslo.config tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack oslo.config \ $WORKSPACE/openstack/oslo.config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.log/run.yaml b/playbooks/legacy/bandit-integration-oslo.log/run.yaml index d47e518b..f8ae8e5e 100644 --- a/playbooks/legacy/bandit-integration-oslo.log/run.yaml +++ b/playbooks/legacy/bandit-integration-oslo.log/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-oslo.log from old job gate-bandit-integration-oslo.log tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack oslo.log \ $WORKSPACE/openstack/oslo.log executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.service/run.yaml b/playbooks/legacy/bandit-integration-oslo.service/run.yaml index f69facd3..843f8260 100644 --- a/playbooks/legacy/bandit-integration-oslo.service/run.yaml +++ b/playbooks/legacy/bandit-integration-oslo.service/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-oslo.service from old job gate-bandit-integration-oslo.service tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack oslo.service \ $WORKSPACE/openstack/oslo.service executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.utils/run.yaml b/playbooks/legacy/bandit-integration-oslo.utils/run.yaml index c4192da1..da635156 100644 --- a/playbooks/legacy/bandit-integration-oslo.utils/run.yaml +++ b/playbooks/legacy/bandit-integration-oslo.utils/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-oslo.utils from old job gate-bandit-integration-oslo.utils tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack oslo.utils \ $WORKSPACE/openstack/oslo.utils executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml b/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml index a1b09205..81803166 100644 --- a/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml +++ b/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-oslo.vmware from old job gate-bandit-integration-oslo.vmware tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack oslo.vmware \ $WORKSPACE/openstack/oslo.vmware executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml b/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml index 71d92ba6..2f453a07 100644 --- a/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml +++ b/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml @@ -3,8 +3,14 @@ job gate-bandit-integration-python-keystoneclient tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,4 +30,5 @@ tox -e integration openstack python-keystoneclient \ $WORKSPACE/openstack/python-keystoneclient executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml b/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml index bad3db90..68aa67c6 100644 --- a/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml +++ b/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml @@ -3,8 +3,14 @@ gate-bandit-integration-python-magnumclient tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,4 +30,5 @@ tox -e integration openstack python-magnumclient \ $WORKSPACE/openstack/python-magnumclient executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-sahara/run.yaml b/playbooks/legacy/bandit-integration-sahara/run.yaml index 980b90f8..28f5931c 100644 --- a/playbooks/legacy/bandit-integration-sahara/run.yaml +++ b/playbooks/legacy/bandit-integration-sahara/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bandit-integration-sahara from old job gate-bandit-integration-sahara tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ tox -e integration openstack sahara \ $WORKSPACE/openstack/sahara executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml +++ b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml index fbdd82d9..ebe46113 100644 --- a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml +++ b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-barbican-dogtag-devstack-fedora-26 from old job gate-barbican-dogtag-devstack-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml +++ b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml index 03b609f2..dd6abf94 100644 --- a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml +++ b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml @@ -3,6 +3,11 @@ job gate-barbican-dogtag-dsvm-functional-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml b/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml +++ b/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml b/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml index 18bb45d4..a3d6603b 100644 --- a/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml +++ b/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-barbican-kmip-dsvm-functional from old job gate-barbican-kmip-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml index 70301db4..7d03e4c6 100644 --- a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml @@ -3,6 +3,11 @@ job gate-barbican-simple-crypto-devstack-postgres-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml b/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml b/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml index 2317764f..eed6be78 100644 --- a/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-barbican-simple-crypto-devstack from old job gate-barbican-simple-crypto-devstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml index a6ca718c..d980beed 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml @@ -3,6 +3,11 @@ old job gate-barbican-simple-crypto-dsvm-functional-postgres-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml index a02d3093..5dca62a3 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml @@ -3,6 +3,11 @@ old job gate-barbican-simple-crypto-dsvm-functional-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml index 4333e509..85a158a7 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml @@ -3,6 +3,11 @@ gate-barbican-simple-crypto-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml index 6504e3f1..eb15cc0f 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml @@ -3,6 +3,11 @@ from old job gate-barbican-simple-crypto-dsvm-tempest-castellan-from-git-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml index d651a000..e8cad73e 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml @@ -3,6 +3,11 @@ old job gate-barbican-simple-crypto-dsvm-tempest-cursive-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml index 222c9cbe..5e05bdcc 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml @@ -3,6 +3,11 @@ job gate-barbican-simple-crypto-dsvm-tempest-glance-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml index ed354c9d..9721cbc8 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml @@ -3,6 +3,11 @@ job gate-barbican-simple-crypto-dsvm-tempest-nova-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml index b32c9437..65839c31 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml @@ -3,6 +3,11 @@ job gate-barbican-simple-crypto-dsvm-tempest-py35-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml index 2f1ceeff..45dd08f0 100644 --- a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml @@ -3,6 +3,11 @@ gate-barbican-simple-crypto-dsvm-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bashate-devstack/run.yaml b/playbooks/legacy/bashate-devstack/run.yaml index 6919c8f2..12fe10ab 100644 --- a/playbooks/legacy/bashate-devstack/run.yaml +++ b/playbooks/legacy/bashate-devstack/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-bashate-devstack from old job gate-bashate-devstack tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,4 +35,5 @@ tox -e bashate popd executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bashate-python36-fedora-26/post.yaml b/playbooks/legacy/bashate-python36-fedora-26/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bashate-python36-fedora-26/post.yaml +++ b/playbooks/legacy/bashate-python36-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bashate-python36-fedora-26/run.yaml b/playbooks/legacy/bashate-python36-fedora-26/run.yaml index 543cfc0c..265f43a7 100644 --- a/playbooks/legacy/bashate-python36-fedora-26/run.yaml +++ b/playbooks/legacy/bashate-python36-fedora-26/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bashate-python36-fedora-26 from old job gate-bashate-python36-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py36 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/beaker-localhost-rake/post.yaml b/playbooks/legacy/beaker-localhost-rake/post.yaml index 71985a79..f166004c 100644 --- a/playbooks/legacy/beaker-localhost-rake/post.yaml +++ b/playbooks/legacy/beaker-localhost-rake/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/beaker-localhost-rake/run.yaml b/playbooks/legacy/beaker-localhost-rake/run.yaml index c2712878..96e002aa 100644 --- a/playbooks/legacy/beaker-localhost-rake/run.yaml +++ b/playbooks/legacy/beaker-localhost-rake/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-beaker-localhost-rake from old job gate-beaker-localhost-rake tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems bundle install + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +64,5 @@ mkdir -p .bundled_gems export GEM_HOME=`pwd`/.bundled_gems bundle exec rake + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/beaker-nodepool-rake/post.yaml b/playbooks/legacy/beaker-nodepool-rake/post.yaml index 71985a79..f166004c 100644 --- a/playbooks/legacy/beaker-nodepool-rake/post.yaml +++ b/playbooks/legacy/beaker-nodepool-rake/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/beaker-nodepool-rake/run.yaml b/playbooks/legacy/beaker-nodepool-rake/run.yaml index 19372d78..f23911b1 100644 --- a/playbooks/legacy/beaker-nodepool-rake/run.yaml +++ b/playbooks/legacy/beaker-nodepool-rake/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-beaker-nodepool-rake from old job gate-beaker-nodepool-rake tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ mkdir .bundled_gems export GEM_HOME=`pwd`/.bundled_gems bundle install + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +64,5 @@ mkdir -p .bundled_gems export GEM_HOME=`pwd`/.bundled_gems bundle exec rake + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml index bb23a5d3..cb494277 100644 --- a/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bifrost-integration-dhcp-centos-7 from old job gate-bifrost-integration-dhcp-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cd openstack/bifrost scripts/test-bifrost-inventory-dhcp.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml index 89bbcadf..2cf8ddff 100644 --- a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml @@ -3,6 +3,11 @@ gate-bifrost-integration-dhcp-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cd openstack/bifrost scripts/test-bifrost-inventory-dhcp.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp/post.yaml b/playbooks/legacy/bifrost-integration-dhcp/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dhcp/post.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dhcp/run.yaml b/playbooks/legacy/bifrost-integration-dhcp/run.yaml index 057c5a00..6b001306 100644 --- a/playbooks/legacy/bifrost-integration-dhcp/run.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bifrost-integration-dhcp from old job gate-bifrost-integration-dhcp-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cd openstack/bifrost scripts/test-bifrost-inventory-dhcp.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml index fd3a7aec..74f9aed9 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-bifrost-integration-dibipa-debian-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cd openstack/bifrost scripts/test-bifrost-build-images.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml index d02ced5c..24d73c48 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml @@ -3,6 +3,11 @@ old job gate-bifrost-integration-dibipa-debian-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cd openstack/bifrost scripts/test-bifrost-build-images.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml index 9f412071..819d9ed7 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bifrost-integration-dibipa-debian from old job gate-bifrost-integration-dibipa-debian-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cd openstack/bifrost scripts/test-bifrost-build-images.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml index 52f0582d..6203afca 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-bifrost-integration-tinyipa-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cd openstack/bifrost scripts/test-bifrost.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml index 79770855..03f51d44 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml @@ -3,6 +3,11 @@ job gate-bifrost-integration-tinyipa-opensuse-423 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cd openstack/bifrost scripts/test-bifrost.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa/post.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/bifrost-integration-tinyipa/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml index 95913125..3d4e4282 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa/run.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bifrost-integration-tinyipa from old job gate-bifrost-integration-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cd openstack/bifrost scripts/test-bifrost.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-centos-7/post.yaml b/playbooks/legacy/bindep-fallback-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback-centos-7/post.yaml +++ b/playbooks/legacy/bindep-fallback-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback-centos-7/run.yaml b/playbooks/legacy/bindep-fallback-centos-7/run.yaml index 18ef1fbb..5c011f2c 100644 --- a/playbooks/legacy/bindep-fallback-centos-7/run.yaml +++ b/playbooks/legacy/bindep-fallback-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback-centos-7 from old job gate-{name}-bindep-fallback-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml b/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml +++ b/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml b/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml index b8a1c1ef..dd70b4af 100644 --- a/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml +++ b/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback-debian-jessie from old job gate-{name}-bindep-fallback-debian-jessie tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-fedora-26/post.yaml b/playbooks/legacy/bindep-fallback-fedora-26/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback-fedora-26/post.yaml +++ b/playbooks/legacy/bindep-fallback-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback-fedora-26/run.yaml b/playbooks/legacy/bindep-fallback-fedora-26/run.yaml index 511f75ad..e0bee522 100644 --- a/playbooks/legacy/bindep-fallback-fedora-26/run.yaml +++ b/playbooks/legacy/bindep-fallback-fedora-26/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback-fedora-26 from old job gate-{name}-bindep-fallback-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml b/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml +++ b/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml b/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml index daee353e..5a6573b7 100644 --- a/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml +++ b/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback-opensuse-423 from old job gate-{name}-bindep-fallback-opensuse-423 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml b/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml b/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml index 808e88d6..6a40409a 100644 --- a/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback-ubuntu-trusty from old job gate-{name}-bindep-fallback-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback/post.yaml b/playbooks/legacy/bindep-fallback/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/bindep-fallback/post.yaml +++ b/playbooks/legacy/bindep-fallback/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/bindep-fallback/run.yaml b/playbooks/legacy/bindep-fallback/run.yaml index b2188442..6033e783 100644 --- a/playbooks/legacy/bindep-fallback/run.yaml +++ b/playbooks/legacy/bindep-fallback/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-bindep-fallback from old job gate-{name}-bindep-fallback-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ fi /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml b/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml index 19f07980..8fde3997 100644 --- a/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml +++ b/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-blazar-dashboard-releasenotes from old job gate-blazar-dashboard-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-devstack-dsvm/post.yaml b/playbooks/legacy/blazar-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/blazar-devstack-dsvm/post.yaml +++ b/playbooks/legacy/blazar-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/blazar-devstack-dsvm/run.yaml b/playbooks/legacy/blazar-devstack-dsvm/run.yaml index ff989b0a..71ef1e89 100644 --- a/playbooks/legacy/blazar-devstack-dsvm/run.yaml +++ b/playbooks/legacy/blazar-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-blazar-devstack-dsvm from old job gate-blazar-devstack-dsvm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-pylint/post.yaml b/playbooks/legacy/blazar-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/blazar-pylint/post.yaml +++ b/playbooks/legacy/blazar-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/blazar-pylint/run.yaml b/playbooks/legacy/blazar-pylint/run.yaml index 0d7043e1..00740cd7 100644 --- a/playbooks/legacy/blazar-pylint/run.yaml +++ b/playbooks/legacy/blazar-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-blazar-pylint from old job gate-blazar-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-releasenotes/run.yaml b/playbooks/legacy/blazar-releasenotes/run.yaml index c8c9d801..fc58fc8b 100644 --- a/playbooks/legacy/blazar-releasenotes/run.yaml +++ b/playbooks/legacy/blazar-releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-blazar-releasenotes from old job gate-blazar-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml +++ b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml index cacaf3f5..01a63c13 100644 --- a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml +++ b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml @@ -3,6 +3,11 @@ gate-brick-cinderclient-ext-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +44,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/castellan-dsvm-functional/post.yaml b/playbooks/legacy/castellan-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/castellan-dsvm-functional/post.yaml +++ b/playbooks/legacy/castellan-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/castellan-dsvm-functional/run.yaml b/playbooks/legacy/castellan-dsvm-functional/run.yaml index 70d53a69..efd0e9bb 100644 --- a/playbooks/legacy/castellan-dsvm-functional/run.yaml +++ b/playbooks/legacy/castellan-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-castellan-dsvm-functional from old job gate-castellan-dsvm-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml index 1788a6b3..e86fa719 100644 --- a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-dsvm-functional-mongodb from old job gate-ceilometer-dsvm-functional-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml index 0a4aacfc..69a9c756 100644 --- a/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-dsvm-functional-mysql from old job gate-ceilometer-dsvm-functional-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml index be569105..af2b6c3d 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-dsvm-tempest-plugin-es from old job gate-ceilometer-dsvm-tempest-plugin-es-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml index ec591102..36f31640 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ from old job gate-ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml index c0713cea..3d0030ee 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml @@ -3,6 +3,11 @@ gate-ceilometer-dsvm-tempest-plugin-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml index cea205c3..9433c9a7 100644 --- a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml @@ -3,6 +3,11 @@ gate-ceilometer-dsvm-tempest-plugin-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml b/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml b/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml index feaea689..3a5e28da 100644 --- a/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-tox-py27-mongodb from old job gate-ceilometer-tox-py27-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mongodb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml b/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml b/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml index ee0eb679..3cb9aa50 100644 --- a/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-tox-py27-mysql from old job gate-ceilometer-tox-py27-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml b/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml b/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml index 30827a13..70b6d53d 100644 --- a/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml +++ b/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometer-tox-py27-postgresql from old job gate-ceilometer-tox-py27-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml index 33b608e5..d25ebb06 100644 --- a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ from old job gate-ceilometerclient-dsvm-functional-identity-v3-only-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml index 71b04128..6e20595b 100644 --- a/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ceilometerclient-dsvm-functional from old job gate-ceilometerclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/check-osc-plugins/run.yaml b/playbooks/legacy/check-osc-plugins/run.yaml index d6587832..dd3f6acd 100644 --- a/playbooks/legacy/check-osc-plugins/run.yaml +++ b/playbooks/legacy/check-osc-plugins/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-check-osc-plugins from old job check-osc-plugins tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/check-osc-plugins.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration-centos-7/post.yaml b/playbooks/legacy/chef-rake-integration-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/chef-rake-integration-centos-7/post.yaml +++ b/playbooks/legacy/chef-rake-integration-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/chef-rake-integration-centos-7/run.yaml b/playbooks/legacy/chef-rake-integration-centos-7/run.yaml index b8182186..e8bbc03e 100644 --- a/playbooks/legacy/chef-rake-integration-centos-7/run.yaml +++ b/playbooks/legacy/chef-rake-integration-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-chef-rake-integration-centos-7 from old job gate-{name}-chef-rake-integration-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ set -x ./bootstrap.sh allinone executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +54,5 @@ set -x chef exec rake integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration-multinode/post.yaml b/playbooks/legacy/chef-rake-integration-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/chef-rake-integration-multinode/post.yaml +++ b/playbooks/legacy/chef-rake-integration-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/chef-rake-integration-multinode/run.yaml b/playbooks/legacy/chef-rake-integration-multinode/run.yaml index adf376ce..78322cdd 100644 --- a/playbooks/legacy/chef-rake-integration-multinode/run.yaml +++ b/playbooks/legacy/chef-rake-integration-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-chef-rake-integration-multinode from old job gate-{name}-chef-rake-integration-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ set -x ./bootstrap.sh multinode executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +54,5 @@ set -x chef exec rake integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration/post.yaml b/playbooks/legacy/chef-rake-integration/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/chef-rake-integration/post.yaml +++ b/playbooks/legacy/chef-rake-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/chef-rake-integration/run.yaml b/playbooks/legacy/chef-rake-integration/run.yaml index 9ef02008..0951be62 100644 --- a/playbooks/legacy/chef-rake-integration/run.yaml +++ b/playbooks/legacy/chef-rake-integration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-chef-rake-integration from old job gate-{name}-chef-rake-integration-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ set -x ./bootstrap.sh allinone executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +54,5 @@ set -x chef exec rake integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake/run.yaml b/playbooks/legacy/chef-rake/run.yaml index c1ab355d..75a3367f 100644 --- a/playbooks/legacy/chef-rake/run.yaml +++ b/playbooks/legacy/chef-rake/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-chef-rake from old job gate-{name}-chef-rake tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ set -x ./bootstrap.sh allinone executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +64,5 @@ set -x chef exec rake executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-pylint/post.yaml b/playbooks/legacy/cinder-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cinder-pylint/post.yaml +++ b/playbooks/legacy/cinder-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cinder-pylint/run.yaml b/playbooks/legacy/cinder-pylint/run.yaml index 7b57444a..7895bd3d 100644 --- a/playbooks/legacy/cinder-pylint/run.yaml +++ b/playbooks/legacy/cinder-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cinder-pylint from old job gate-cinder-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml b/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml +++ b/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml b/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml index a1da260f..d5dc19a8 100644 --- a/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml +++ b/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cinder-tox-bandit-baseline from old job gate-cinder-tox-bandit-baseline-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh bandit-baseline + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-compliance/post.yaml b/playbooks/legacy/cinder-tox-compliance/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cinder-tox-compliance/post.yaml +++ b/playbooks/legacy/cinder-tox-compliance/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cinder-tox-compliance/run.yaml b/playbooks/legacy/cinder-tox-compliance/run.yaml index b869258e..6a8e1a99 100644 --- a/playbooks/legacy/cinder-tox-compliance/run.yaml +++ b/playbooks/legacy/cinder-tox-compliance/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cinder-tox-compliance from old job gate-cinder-tox-compliance-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh compliance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-functional/post.yaml b/playbooks/legacy/cinder-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cinder-tox-functional/post.yaml +++ b/playbooks/legacy/cinder-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cinder-tox-functional/run.yaml b/playbooks/legacy/cinder-tox-functional/run.yaml index 9512a57b..1824e02a 100644 --- a/playbooks/legacy/cinder-tox-functional/run.yaml +++ b/playbooks/legacy/cinder-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cinder-tox-functional from old job gate-cinder-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml index e41b7af3..8917ec36 100644 --- a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ old job gate-cinderclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinderclient-dsvm-functional/post.yaml b/playbooks/legacy/cinderclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/cinderclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/cinderclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/cinderclient-dsvm-functional/run.yaml b/playbooks/legacy/cinderclient-dsvm-functional/run.yaml index b2c75aad..c471b377 100644 --- a/playbooks/legacy/cinderclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/cinderclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cinderclient-dsvm-functional from old job gate-cinderclient-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cl-openstack-client-run-tests/run.yaml b/playbooks/legacy/cl-openstack-client-run-tests/run.yaml index d555ceec..7ef8f625 100644 --- a/playbooks/legacy/cl-openstack-client-run-tests/run.yaml +++ b/playbooks/legacy/cl-openstack-client-run-tests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cl-openstack-client-run-tests from old job gate-cl-openstack-client-run-tests tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: ./run-tests.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml b/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml +++ b/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml b/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml index 4d216da1..9a7a817d 100644 --- a/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml +++ b/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cliff-tox-neutronclient-tip from old job gate-cliff-tox-neutronclient-tip-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh neutronclient-tip + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml b/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml +++ b/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml b/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml index 2b10bd2e..d87bf5c2 100644 --- a/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml +++ b/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cliff-tox-openstackclient-tip from old job gate-cliff-tox-openstackclient-tip-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh openstackclient-tip + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cloudkitty-dsvm-install/post.yaml b/playbooks/legacy/cloudkitty-dsvm-install/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/cloudkitty-dsvm-install/post.yaml +++ b/playbooks/legacy/cloudkitty-dsvm-install/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/cloudkitty-dsvm-install/run.yaml b/playbooks/legacy/cloudkitty-dsvm-install/run.yaml index 80853205..e18bf738 100644 --- a/playbooks/legacy/cloudkitty-dsvm-install/run.yaml +++ b/playbooks/legacy/cloudkitty-dsvm-install/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cloudkitty-dsvm-install from old job gate-cloudkitty-dsvm-install-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-api-mysql/post.yaml b/playbooks/legacy/congress-dsvm-api-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/congress-dsvm-api-mysql/post.yaml +++ b/playbooks/legacy/congress-dsvm-api-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/congress-dsvm-api-mysql/run.yaml b/playbooks/legacy/congress-dsvm-api-mysql/run.yaml index 2f6bf88f..96c886e9 100644 --- a/playbooks/legacy/congress-dsvm-api-mysql/run.yaml +++ b/playbooks/legacy/congress-dsvm-api-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-congress-dsvm-api-mysql from old job gate-congress-dsvm-api-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml b/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml +++ b/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml b/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml index 6eeb473a..86d3f3fd 100644 --- a/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml +++ b/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-congress-dsvm-api-postgresql from old job gate-congress-dsvm-api-postgresql-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml b/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml +++ b/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml b/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml index 9a809b37..228fa7eb 100644 --- a/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml +++ b/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-congress-dsvm-py35-api-mysql from old job gate-congress-dsvm-py35-api-mysql-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,6 +49,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -82,4 +89,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-pe-replicated-mysql/post.yaml b/playbooks/legacy/congress-pe-replicated-mysql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/congress-pe-replicated-mysql/post.yaml +++ b/playbooks/legacy/congress-pe-replicated-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/congress-pe-replicated-mysql/run.yaml b/playbooks/legacy/congress-pe-replicated-mysql/run.yaml index 87f86686..c725c41a 100644 --- a/playbooks/legacy/congress-pe-replicated-mysql/run.yaml +++ b/playbooks/legacy/congress-pe-replicated-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-congress-pe-replicated-mysql from old job gate-congress-pe-replicated-mysql-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +41,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml b/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml +++ b/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml b/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml index e6c486bf..23365c0a 100644 --- a/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml +++ b/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-congress-pe-replicated-postgresql from old job gate-congress-pe-replicated-postgresql-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +41,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml index d7f6f821..02b09215 100644 --- a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ gate-craton-dashboard-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml index 4668fa95..597a01e4 100644 --- a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ gate-craton-dashboard-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml +++ b/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml index df60512b..78760dd8 100644 --- a/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml +++ b/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-craton-dashboard-tox-py27dj110 from old job gate-craton-dashboard-tox-py27dj110-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml +++ b/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml index f7d4f07e..47ef9753 100644 --- a/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml +++ b/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-craton-dashboard-tox-py27dj19 from old job gate-craton-dashboard-tox-py27dj19-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-tox-functional/post.yaml b/playbooks/legacy/craton-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/craton-tox-functional/post.yaml +++ b/playbooks/legacy/craton-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/craton-tox-functional/run.yaml b/playbooks/legacy/craton-tox-functional/run.yaml index c61e3eb9..f37f01e9 100644 --- a/playbooks/legacy/craton-tox-functional/run.yaml +++ b/playbooks/legacy/craton-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-craton-tox-functional from old job gate-craton-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-cinder-python27/post.yaml b/playbooks/legacy/cross-cinder-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-cinder-python27/post.yaml +++ b/playbooks/legacy/cross-cinder-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-cinder-python27/run.yaml b/playbooks/legacy/cross-cinder-python27/run.yaml index 8d075941..d57d6593 100644 --- a/playbooks/legacy/cross-cinder-python27/run.yaml +++ b/playbooks/legacy/cross-cinder-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-cinder-python27 from old job gate-cross-cinder-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-cinder-python35/post.yaml b/playbooks/legacy/cross-cinder-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-cinder-python35/post.yaml +++ b/playbooks/legacy/cross-cinder-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-cinder-python35/run.yaml b/playbooks/legacy/cross-cinder-python35/run.yaml index 1277e31c..44c1a9cb 100644 --- a/playbooks/legacy/cross-cinder-python35/run.yaml +++ b/playbooks/legacy/cross-cinder-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-cinder-python35 from old job gate-cross-cinder-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-glance-python27/post.yaml b/playbooks/legacy/cross-glance-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-glance-python27/post.yaml +++ b/playbooks/legacy/cross-glance-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-glance-python27/run.yaml b/playbooks/legacy/cross-glance-python27/run.yaml index 060105b8..a1121e36 100644 --- a/playbooks/legacy/cross-glance-python27/run.yaml +++ b/playbooks/legacy/cross-glance-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-glance-python27 from old job gate-cross-glance-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-glance-python35/post.yaml b/playbooks/legacy/cross-glance-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-glance-python35/post.yaml +++ b/playbooks/legacy/cross-glance-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-glance-python35/run.yaml b/playbooks/legacy/cross-glance-python35/run.yaml index 2bb9b6fe..df69def8 100644 --- a/playbooks/legacy/cross-glance-python35/run.yaml +++ b/playbooks/legacy/cross-glance-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-glance-python35 from old job gate-cross-glance-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-horizon-python27/post.yaml b/playbooks/legacy/cross-horizon-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-horizon-python27/post.yaml +++ b/playbooks/legacy/cross-horizon-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-horizon-python27/run.yaml b/playbooks/legacy/cross-horizon-python27/run.yaml index 30cfd4ee..b4ec3eb1 100644 --- a/playbooks/legacy/cross-horizon-python27/run.yaml +++ b/playbooks/legacy/cross-horizon-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-horizon-python27 from old job gate-cross-horizon-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-horizon-python35/post.yaml b/playbooks/legacy/cross-horizon-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-horizon-python35/post.yaml +++ b/playbooks/legacy/cross-horizon-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-horizon-python35/run.yaml b/playbooks/legacy/cross-horizon-python35/run.yaml index 63ac2c37..c58383e2 100644 --- a/playbooks/legacy/cross-horizon-python35/run.yaml +++ b/playbooks/legacy/cross-horizon-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-horizon-python35 from old job gate-cross-horizon-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-keystone-python27/post.yaml b/playbooks/legacy/cross-keystone-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-keystone-python27/post.yaml +++ b/playbooks/legacy/cross-keystone-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-keystone-python27/run.yaml b/playbooks/legacy/cross-keystone-python27/run.yaml index db4066f7..5232c2c2 100644 --- a/playbooks/legacy/cross-keystone-python27/run.yaml +++ b/playbooks/legacy/cross-keystone-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-keystone-python27 from old job gate-cross-keystone-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-keystone-python35/post.yaml b/playbooks/legacy/cross-keystone-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-keystone-python35/post.yaml +++ b/playbooks/legacy/cross-keystone-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-keystone-python35/run.yaml b/playbooks/legacy/cross-keystone-python35/run.yaml index 7fb94b89..d876ebe0 100644 --- a/playbooks/legacy/cross-keystone-python35/run.yaml +++ b/playbooks/legacy/cross-keystone-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-keystone-python35 from old job gate-cross-keystone-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-networking-midonet-python35/post.yaml b/playbooks/legacy/cross-networking-midonet-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-networking-midonet-python35/post.yaml +++ b/playbooks/legacy/cross-networking-midonet-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-networking-midonet-python35/run.yaml b/playbooks/legacy/cross-networking-midonet-python35/run.yaml index e92185fd..fa1aae9f 100644 --- a/playbooks/legacy/cross-networking-midonet-python35/run.yaml +++ b/playbooks/legacy/cross-networking-midonet-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-networking-midonet-python35 from old job gate-cross-networking-midonet-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-neutron-python27/post.yaml b/playbooks/legacy/cross-neutron-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-neutron-python27/post.yaml +++ b/playbooks/legacy/cross-neutron-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-neutron-python27/run.yaml b/playbooks/legacy/cross-neutron-python27/run.yaml index ff2d7f77..249c0390 100644 --- a/playbooks/legacy/cross-neutron-python27/run.yaml +++ b/playbooks/legacy/cross-neutron-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-neutron-python27 from old job gate-cross-neutron-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-neutron-python35/post.yaml b/playbooks/legacy/cross-neutron-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-neutron-python35/post.yaml +++ b/playbooks/legacy/cross-neutron-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-neutron-python35/run.yaml b/playbooks/legacy/cross-neutron-python35/run.yaml index 630e56e8..4888b4ef 100644 --- a/playbooks/legacy/cross-neutron-python35/run.yaml +++ b/playbooks/legacy/cross-neutron-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-neutron-python35 from old job gate-cross-neutron-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-func/post.yaml b/playbooks/legacy/cross-nova-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-nova-func/post.yaml +++ b/playbooks/legacy/cross-nova-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-nova-func/run.yaml b/playbooks/legacy/cross-nova-func/run.yaml index 4bc22d7f..196ffd4c 100644 --- a/playbooks/legacy/cross-nova-func/run.yaml +++ b/playbooks/legacy/cross-nova-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-nova-func from old job gate-cross-nova-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-python27/post.yaml b/playbooks/legacy/cross-nova-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-nova-python27/post.yaml +++ b/playbooks/legacy/cross-nova-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-nova-python27/run.yaml b/playbooks/legacy/cross-nova-python27/run.yaml index bdd4c8ec..7f969783 100644 --- a/playbooks/legacy/cross-nova-python27/run.yaml +++ b/playbooks/legacy/cross-nova-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-nova-python27 from old job gate-cross-nova-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-python35/post.yaml b/playbooks/legacy/cross-nova-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-nova-python35/post.yaml +++ b/playbooks/legacy/cross-nova-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-nova-python35/run.yaml b/playbooks/legacy/cross-nova-python35/run.yaml index e99c282a..31af9c76 100644 --- a/playbooks/legacy/cross-nova-python35/run.yaml +++ b/playbooks/legacy/cross-nova-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-nova-python35 from old job gate-cross-nova-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-swift-python27/post.yaml b/playbooks/legacy/cross-swift-python27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-swift-python27/post.yaml +++ b/playbooks/legacy/cross-swift-python27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-swift-python27/run.yaml b/playbooks/legacy/cross-swift-python27/run.yaml index 5392aafe..c181785e 100644 --- a/playbooks/legacy/cross-swift-python27/run.yaml +++ b/playbooks/legacy/cross-swift-python27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-swift-python27 from old job gate-cross-swift-python27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-swift-python35/post.yaml b/playbooks/legacy/cross-swift-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/cross-swift-python35/post.yaml +++ b/playbooks/legacy/cross-swift-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/cross-swift-python35/run.yaml b/playbooks/legacy/cross-swift-python35/run.yaml index 7eade863..40139264 100644 --- a/playbooks/legacy/cross-swift-python35/run.yaml +++ b/playbooks/legacy/cross-swift-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cross-swift-python35 from old job gate-cross-swift-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml b/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml +++ b/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml b/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml index 54a7a341..7315921b 100644 --- a/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml +++ b/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cue-integration-dsvm-rabbitmq from old job gate-cue-integration-dsvm-rabbitmq-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cyborg-devstack/post.yaml b/playbooks/legacy/cyborg-devstack/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/cyborg-devstack/post.yaml +++ b/playbooks/legacy/cyborg-devstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/cyborg-devstack/run.yaml b/playbooks/legacy/cyborg-devstack/run.yaml index 614f74e0..910ed404 100644 --- a/playbooks/legacy/cyborg-devstack/run.yaml +++ b/playbooks/legacy/cyborg-devstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-cyborg-devstack from old job gate-cyborg-devstack-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml +++ b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml index db1f7528..d6cede5e 100644 --- a/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml +++ b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dashboard-dsvm-selenium-package from old job gate-dashboard-dsvm-selenium-package-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +63,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/deploy-guide/run.yaml b/playbooks/legacy/deploy-guide/run.yaml index f4e6f2a0..0039dc5a 100644 --- a/playbooks/legacy/deploy-guide/run.yaml +++ b/playbooks/legacy/deploy-guide/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-deploy-guide from old job gate-{name}-deploy-guide tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +127,5 @@ exit executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml index 98a84f3d..4f1be21b 100644 --- a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ job gate-designate-dashboard-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml index 6ec7190c..91ec5ee9 100644 --- a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ job gate-designate-dashboard-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml b/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml +++ b/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml b/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml index c4b97c71..f95d6214 100644 --- a/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml +++ b/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-dsvm-py35-updown from old job gate-devstack-dsvm-py35-updown-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml +++ b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml index 30a2ff3d..c3c0a928 100644 --- a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml +++ b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml @@ -3,6 +3,11 @@ gate-devstack-dsvm-py36-updown-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-updown/post.yaml b/playbooks/legacy/devstack-dsvm-updown/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/devstack-dsvm-updown/post.yaml +++ b/playbooks/legacy/devstack-dsvm-updown/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-dsvm-updown/run.yaml b/playbooks/legacy/devstack-dsvm-updown/run.yaml index 08253479..ab4192e8 100644 --- a/playbooks/legacy/devstack-dsvm-updown/run.yaml +++ b/playbooks/legacy/devstack-dsvm-updown/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-dsvm-updown from old job gate-devstack-dsvm-updown-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml b/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml +++ b/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml b/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml index e2c680ae..82f6772a 100644 --- a/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml +++ b/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-gate-tox-py3-run-tests from old job gate-devstack-gate-tox-py3-run-tests-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py3-run-tests + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml b/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml +++ b/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml b/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml index a24acd5a..8de3a44b 100644 --- a/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml +++ b/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-gate-tox-run-tests from old job gate-devstack-gate-tox-run-tests-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh run-tests + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml b/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml +++ b/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml b/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml index 7ba33158..a4b7f123 100644 --- a/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml +++ b/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-plugin-container-dsvm from old job gate-devstack-plugin-container-dsvm-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-unit-tests/run.yaml b/playbooks/legacy/devstack-unit-tests/run.yaml index 77da45dc..3b67b288 100644 --- a/playbooks/legacy/devstack-unit-tests/run.yaml +++ b/playbooks/legacy/devstack-unit-tests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-devstack-unit-tests from old job gate-devstack-unit-tests tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ echo "IPV4_ADDRS_SAFE_TO_USE=10.1.0.0/20" >> localrc ./tools/install_prereqs.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +62,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +71,5 @@ set -x ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dg-hooks-dsvm/post.yaml b/playbooks/legacy/dg-hooks-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dg-hooks-dsvm/post.yaml +++ b/playbooks/legacy/dg-hooks-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dg-hooks-dsvm/run.yaml b/playbooks/legacy/dg-hooks-dsvm/run.yaml index 98b0974d..72e0e063 100644 --- a/playbooks/legacy/dg-hooks-dsvm/run.yaml +++ b/playbooks/legacy/dg-hooks-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dg-hooks-dsvm from old job gate-dg-hooks-dsvm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml index f10c9060..32e207ce 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml @@ -3,6 +3,11 @@ job gate-dib-dsvm-functests-python2-centos-7-extras-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml index 368ffc83..5978d1b2 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml @@ -3,6 +3,11 @@ job gate-dib-dsvm-functests-python2-centos-7-image-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml index ed15d123..4dbf3ed4 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-dib-dsvm-functests-python2-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ \ \nset +u\ndeactivate\nset -u\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml index d6deec79..09649cdd 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml @@ -3,6 +3,11 @@ job gate-dib-dsvm-functests-python2-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ \ \nset +u\ndeactivate\nset -u\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml index 15a8c10b..d25a6af7 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml @@ -3,6 +3,11 @@ old job gate-dib-dsvm-functests-python2-ubuntu-trusty-extras-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml index 0d395620..f6a5da2d 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml @@ -3,6 +3,11 @@ old job gate-dib-dsvm-functests-python2-ubuntu-trusty-image-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml index 8efcc9dc..72a2b40f 100644 --- a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ job gate-dib-dsvm-functests-python2-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ \ \nset +u\ndeactivate\nset -u\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml index 93d4d72d..d8c7773a 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dib-dsvm-functests-python3-extras from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-extras-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -14,6 +19,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,6 +29,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml index 3bc1ab7c..e0cf70c1 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dib-dsvm-functests-python3-image from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-image-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -14,6 +19,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,6 +29,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml index 1729fbc1..1a25dfcb 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml @@ -3,6 +3,11 @@ job gate-dib-dsvm-functests-python3-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -15,6 +20,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ \ \nset +u\ndeactivate\nset -u\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3/post.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-dsvm-functests-python3/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml index 796314ba..ef67ee89 100644 --- a/playbooks/legacy/dib-dsvm-functests-python3/run.yaml +++ b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dib-dsvm-functests-python3 from old job gate-dib-dsvm-functests-python3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -14,6 +19,7 @@ openstack/diskimage-builder \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,6 +29,7 @@ cd ~/openstack/diskimage-builder /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ \ \nset +u\ndeactivate\nset -u\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-utils-tox-func/post.yaml b/playbooks/legacy/dib-utils-tox-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/dib-utils-tox-func/post.yaml +++ b/playbooks/legacy/dib-utils-tox-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/dib-utils-tox-func/run.yaml b/playbooks/legacy/dib-utils-tox-func/run.yaml index 2d4793ec..23a05b7c 100644 --- a/playbooks/legacy/dib-utils-tox-func/run.yaml +++ b/playbooks/legacy/dib-utils-tox-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dib-utils-tox-func from old job gate-dib-utils-tox-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/diskimage-builder-pylint/post.yaml b/playbooks/legacy/diskimage-builder-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/diskimage-builder-pylint/post.yaml +++ b/playbooks/legacy/diskimage-builder-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/diskimage-builder-pylint/run.yaml b/playbooks/legacy/diskimage-builder-pylint/run.yaml index 37b1412d..01ae4e56 100644 --- a/playbooks/legacy/diskimage-builder-pylint/run.yaml +++ b/playbooks/legacy/diskimage-builder-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-diskimage-builder-pylint from old job gate-diskimage-builder-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml index 2e851ba9..2d716ac3 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml @@ -3,6 +3,11 @@ gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml index f34c12e7..08c09a8e 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-django_openstack_auth-tox-py27dj18 from old job gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj18 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml index 8effd834..35d22523 100644 --- a/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-django_openstack_auth-tox-py27dj19 from old job gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dox-buildimages/post.yaml b/playbooks/legacy/dox-buildimages/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/dox-buildimages/post.yaml +++ b/playbooks/legacy/dox-buildimages/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/dox-buildimages/run.yaml b/playbooks/legacy/dox-buildimages/run.yaml index e77c644b..ff679918 100644 --- a/playbooks/legacy/dox-buildimages/run.yaml +++ b/playbooks/legacy/dox-buildimages/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dox-buildimages from old job gate-dox-buildimages-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +65,5 @@ set -x ./tools/tarball.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml +++ b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml index e6fef3e4..21f2b48b 100644 --- a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml +++ b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dragonflow-dsvm-fullstack-zmq from old job gate-dragonflow-dsvm-fullstack-zmq-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml index b6fad5ea..c81304a8 100644 --- a/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dragonflow-dsvm-fullstack from old job gate-dragonflow-dsvm-fullstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-rally/post.yaml b/playbooks/legacy/dragonflow-dsvm-rally/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/dragonflow-dsvm-rally/post.yaml +++ b/playbooks/legacy/dragonflow-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dragonflow-dsvm-rally/run.yaml b/playbooks/legacy/dragonflow-dsvm-rally/run.yaml index e416c17f..96d80b28 100644 --- a/playbooks/legacy/dragonflow-dsvm-rally/run.yaml +++ b/playbooks/legacy/dragonflow-dsvm-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dragonflow-dsvm-rally from old job gate-dragonflow-dsvm-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml b/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml b/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml index 83c35d80..dc3af129 100644 --- a/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-ansible-func-centos-7 from old job gate-{name}-dsvm-ansible-func-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,6 +49,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,6 +59,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml index f34a7b27..e3c06f8f 100644 --- a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-ansible-func-ubuntu-trusty from old job gate-{name}-dsvm-ansible-func-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,6 +49,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,6 +59,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml index 15561e8e..ae6096fd 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-dsvm-collectd-ceilometer-plugin-bin-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml index e33772a0..cb04b1cf 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml @@ -3,6 +3,11 @@ gate-dsvm-collectd-ceilometer-plugin-bin-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml index 8712c73a..b0f11459 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-dsvm-collectd-ceilometer-plugin-src-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml index 4f7f7c35..934b7f79 100644 --- a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml @@ -3,6 +3,11 @@ gate-dsvm-collectd-ceilometer-plugin-src-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml +++ b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml index 5c7d963e..eead7452 100644 --- a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml +++ b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml @@ -3,6 +3,11 @@ job gate-dsvm-murano-apps-refstackclient-unittest-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,6 +50,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +64,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,4 +88,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml index c5da7159..69a8262e 100644 --- a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml @@ -3,6 +3,11 @@ old job gate-dsvm-networking-odl-fullstack-carbon-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml index 6734b1da..81738b1c 100644 --- a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml @@ -3,6 +3,11 @@ old job gate-dsvm-networking-odl-fullstack-nitrogen-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml +++ b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml index 24c00614..94795225 100644 --- a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml +++ b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml @@ -3,6 +3,11 @@ old job gate-dsvm-networking-odl-functional-carbon-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml +++ b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml index 38ab640e..0a573743 100644 --- a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml +++ b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml @@ -3,6 +3,11 @@ from old job gate-dsvm-networking-odl-functional-nitrogen-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml b/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml b/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml index a30e40fc..9952e48c 100644 --- a/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-debian-src from old job gate-dsvm-nodepool-debian-src-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml b/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml b/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml index 181be19f..f46e65d3 100644 --- a/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-opensuse-src from old job gate-dsvm-nodepool-opensuse-src tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml b/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml b/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml index 1e50c7c5..812532ee 100644 --- a/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-py35-src from old job gate-dsvm-nodepool-py35-src-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-py35/post.yaml b/playbooks/legacy/dsvm-nodepool-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-py35/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-py35/run.yaml b/playbooks/legacy/dsvm-nodepool-py35/run.yaml index da211380..d6247016 100644 --- a/playbooks/legacy/dsvm-nodepool-py35/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-py35 from old job gate-dsvm-nodepool-py35-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml b/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml b/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml index 93c05044..25cf2cc2 100644 --- a/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-redhat-src from old job gate-dsvm-nodepool-redhat-src tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src-old/post.yaml b/playbooks/legacy/dsvm-nodepool-src-old/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-src-old/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-src-old/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-src-old/run.yaml b/playbooks/legacy/dsvm-nodepool-src-old/run.yaml index 354c7c7e..c4a1df3b 100644 --- a/playbooks/legacy/dsvm-nodepool-src-old/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-src-old/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-src-old from old job gate-dsvm-nodepool-src-old-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml b/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml b/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml index cfa27bea..280a07ac 100644 --- a/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-src-zuulv3 from old job gate-dsvm-nodepool-src-zuulv3 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src/post.yaml b/playbooks/legacy/dsvm-nodepool-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-src/run.yaml b/playbooks/legacy/dsvm-nodepool-src/run.yaml index 0df3c7cf..5a17394c 100644 --- a/playbooks/legacy/dsvm-nodepool-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-src from old job gate-dsvm-nodepool-src-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml b/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml +++ b/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml b/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml index 63f415f1..94ece213 100644 --- a/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml +++ b/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool-ubuntu-src from old job gate-dsvm-nodepool-ubuntu-src tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +117,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool/post.yaml b/playbooks/legacy/dsvm-nodepool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-nodepool/post.yaml +++ b/playbooks/legacy/dsvm-nodepool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-nodepool/run.yaml b/playbooks/legacy/dsvm-nodepool/run.yaml index c4f80146..f33b55d6 100644 --- a/playbooks/legacy/dsvm-nodepool/run.yaml +++ b/playbooks/legacy/dsvm-nodepool/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-nodepool from old job gate-dsvm-nodepool-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-os-loganalyze/post.yaml b/playbooks/legacy/dsvm-os-loganalyze/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/dsvm-os-loganalyze/post.yaml +++ b/playbooks/legacy/dsvm-os-loganalyze/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/dsvm-os-loganalyze/run.yaml b/playbooks/legacy/dsvm-os-loganalyze/run.yaml index da0031cc..b581ac24 100644 --- a/playbooks/legacy/dsvm-os-loganalyze/run.yaml +++ b/playbooks/legacy/dsvm-os-loganalyze/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-dsvm-os-loganalyze from old job gate-dsvm-os-loganalyze-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml +++ b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml index a0e1aa64..039d9563 100644 --- a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml +++ b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml @@ -3,6 +3,11 @@ ec2-api-functional-neutron-dsvm-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml +++ b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml index 84d89fce..583b9464 100644 --- a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml +++ b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ec2-api-rally-dsvm-fakevirt from old job ec2-api-rally-dsvm-fakevirt-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/elastic-recheck-docs/run.yaml b/playbooks/legacy/elastic-recheck-docs/run.yaml index 8d3ce626..59de1532 100644 --- a/playbooks/legacy/elastic-recheck-docs/run.yaml +++ b/playbooks/legacy/elastic-recheck-docs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-elastic-recheck-docs from old job elastic-recheck-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/elastic-recheck-tox-queries/post.yaml b/playbooks/legacy/elastic-recheck-tox-queries/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/elastic-recheck-tox-queries/post.yaml +++ b/playbooks/legacy/elastic-recheck-tox-queries/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/elastic-recheck-tox-queries/run.yaml b/playbooks/legacy/elastic-recheck-tox-queries/run.yaml index f958aacb..f0fea561 100644 --- a/playbooks/legacy/elastic-recheck-tox-queries/run.yaml +++ b/playbooks/legacy/elastic-recheck-tox-queries/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-elastic-recheck-tox-queries from old job gate-elastic-recheck-tox-queries-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh queries + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-api-pylint/post.yaml b/playbooks/legacy/freezer-api-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/freezer-api-pylint/post.yaml +++ b/playbooks/legacy/freezer-api-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/freezer-api-pylint/run.yaml b/playbooks/legacy/freezer-api-pylint/run.yaml index ff0c44d8..6f66c991 100644 --- a/playbooks/legacy/freezer-api-pylint/run.yaml +++ b/playbooks/legacy/freezer-api-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-freezer-api-pylint from old job gate-freezer-api-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-dr-pylint/post.yaml b/playbooks/legacy/freezer-dr-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/freezer-dr-pylint/post.yaml +++ b/playbooks/legacy/freezer-dr-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/freezer-dr-pylint/run.yaml b/playbooks/legacy/freezer-dr-pylint/run.yaml index 6093b4b8..f4512118 100644 --- a/playbooks/legacy/freezer-dr-pylint/run.yaml +++ b/playbooks/legacy/freezer-dr-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-freezer-dr-pylint from old job gate-freezer-dr-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-pylint/post.yaml b/playbooks/legacy/freezer-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/freezer-pylint/post.yaml +++ b/playbooks/legacy/freezer-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/freezer-pylint/run.yaml b/playbooks/legacy/freezer-pylint/run.yaml index 04e6ae65..5450cae7 100644 --- a/playbooks/legacy/freezer-pylint/run.yaml +++ b/playbooks/legacy/freezer-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-freezer-pylint from old job gate-freezer-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-web-ui-pylint/post.yaml b/playbooks/legacy/freezer-web-ui-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/freezer-web-ui-pylint/post.yaml +++ b/playbooks/legacy/freezer-web-ui-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/freezer-web-ui-pylint/run.yaml b/playbooks/legacy/freezer-web-ui-pylint/run.yaml index 471c3127..b9cf2163 100644 --- a/playbooks/legacy/freezer-web-ui-pylint/run.yaml +++ b/playbooks/legacy/freezer-web-ui-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-freezer-web-ui-pylint from old job gate-freezer-web-ui-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml index db8339a4..8b908435 100644 --- a/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml +++ b/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-fuel-astute-puppet-unit-3.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-ccp-validate/run.yaml b/playbooks/legacy/fuel-ccp-validate/run.yaml index 1af0b276..2c49bfa6 100644 --- a/playbooks/legacy/fuel-ccp-validate/run.yaml +++ b/playbooks/legacy/fuel-ccp-validate/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-ccp-validate from old job gate-fuel-ccp-validate tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -9,6 +14,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -25,6 +31,7 @@ git://git.openstack.org \ openstack/fuel-ccp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -34,4 +41,5 @@ cd "$WORKSPACE/fuel-ccp/tools/gate" ./run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml index 667a066f..c199cbd6 100644 --- a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-devops-pylint-ubuntu-trusty from old job gate-fuel-devops-pylint-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-devops-pylint/post.yaml b/playbooks/legacy/fuel-devops-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/fuel-devops-pylint/post.yaml +++ b/playbooks/legacy/fuel-devops-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/fuel-devops-pylint/run.yaml b/playbooks/legacy/fuel-devops-pylint/run.yaml index d391f539..e17b4342 100644 --- a/playbooks/legacy/fuel-devops-pylint/run.yaml +++ b/playbooks/legacy/fuel-devops-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-devops-pylint from old job gate-fuel-devops-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-lint/run.yaml b/playbooks/legacy/fuel-library-puppet-lint/run.yaml index 607ae9df..d9740e61 100644 --- a/playbooks/legacy/fuel-library-puppet-lint/run.yaml +++ b/playbooks/legacy/fuel-library-puppet-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-library-puppet-lint from old job gate-fuel-library-puppet-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +98,5 @@ gem install puppetlabs_spec_helper ./.bundled_gems/rake lint 2>&1 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml index b6540b62..08b73ef4 100644 --- a/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml +++ b/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-fuel-library-puppet-unit-3.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml b/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml index 877076f4..813f764c 100644 --- a/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml +++ b/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-fuel-library-puppet-unit-4.5-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml index bb62bca9..0072ed54 100644 --- a/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml +++ b/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-fuel-nailgun-agent-puppet-unit-3.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-octane-puppet-lint/run.yaml b/playbooks/legacy/fuel-octane-puppet-lint/run.yaml index e02b1e1d..09aeeff1 100644 --- a/playbooks/legacy/fuel-octane-puppet-lint/run.yaml +++ b/playbooks/legacy/fuel-octane-puppet-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-octane-puppet-lint from old job gate-fuel-octane-puppet-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +98,5 @@ gem install puppetlabs_spec_helper ./.bundled_gems/rake lint 2>&1 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml index 97491d92..2c3eb2ee 100644 --- a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-qa-pylint-ubuntu-trusty from old job gate-fuel-qa-pylint-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-qa-pylint/post.yaml b/playbooks/legacy/fuel-qa-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/fuel-qa-pylint/post.yaml +++ b/playbooks/legacy/fuel-qa-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/fuel-qa-pylint/run.yaml b/playbooks/legacy/fuel-qa-pylint/run.yaml index 65851bff..449dacc8 100644 --- a/playbooks/legacy/fuel-qa-pylint/run.yaml +++ b/playbooks/legacy/fuel-qa-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-qa-pylint from old job gate-fuel-qa-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml index f6947383..d68502ce 100644 --- a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuel-ui-nodejs4-npm-run-lint from old job gate-fuel-ui-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml b/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml +++ b/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml b/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml index 1566e0c5..e65d5afc 100644 --- a/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml +++ b/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml @@ -3,6 +3,11 @@ gate-functional-dsvm-astara-appliance-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-astara/post.yaml b/playbooks/legacy/functional-dsvm-astara/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-astara/post.yaml +++ b/playbooks/legacy/functional-dsvm-astara/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-astara/run.yaml b/playbooks/legacy/functional-dsvm-astara/run.yaml index 19272c4a..e5fb5428 100644 --- a/playbooks/legacy/functional-dsvm-astara/run.yaml +++ b/playbooks/legacy/functional-dsvm-astara/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-astara from old job gate-functional-dsvm-astara-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-api/post.yaml b/playbooks/legacy/functional-dsvm-magnum-api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-api/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-api/run.yaml b/playbooks/legacy/functional-dsvm-magnum-api/run.yaml index 954aa101..b63d0c2b 100644 --- a/playbooks/legacy/functional-dsvm-magnum-api/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-api from old job gate-functional-dsvm-magnum-api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml b/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml b/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml index 8f00dbac..3a7d7806 100644 --- a/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-dcos from old job gate-functional-dsvm-magnum-dcos-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml index 4a3f4e62..51ab62ad 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-k8s-ironic from old job gate-functional-dsvm-magnum-k8s-ironic-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml index 2e8c5760..db02f962 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml @@ -3,6 +3,11 @@ gate-functional-dsvm-magnum-k8s-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,4 +106,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml index e90c7127..6271a124 100644 --- a/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-k8s from old job gate-functional-dsvm-magnum-k8s-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml b/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml b/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml index 39cf0dae..760fd674 100644 --- a/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-mesos from old job gate-functional-dsvm-magnum-mesos-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml index 389e4be9..1e06a8c8 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml @@ -3,6 +3,11 @@ gate-functional-dsvm-magnum-swarm-ironic-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,4 +106,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml index db0d9794..afd59f45 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-swarm-mode from old job gate-functional-dsvm-magnum-swarm-mode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml index 3233354b..9da420f6 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml @@ -3,6 +3,11 @@ gate-functional-dsvm-magnum-swarm-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,4 +106,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml index 7102a7bb..0057e849 100644 --- a/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml +++ b/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-dsvm-magnum-swarm from old job gate-functional-dsvm-magnum-swarm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +105,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml b/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml +++ b/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml b/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml index fe4c453b..aab3f3f9 100644 --- a/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml +++ b/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-neutron-dsvm-ec2api from old job gate-functional-neutron-dsvm-ec2api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml b/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml +++ b/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml b/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml index d99d0f33..f6d04056 100644 --- a/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml +++ b/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-functional-neutron-dsvm-gceapi from old job gate-functional-neutron-dsvm-gceapi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml b/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml +++ b/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml b/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml index d00bc55b..23e4a7f4 100644 --- a/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml +++ b/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml @@ -3,6 +3,11 @@ gate-functional-nova-network-dsvm-ec2api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml b/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml +++ b/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml b/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml index ddd01b17..ba7ccacb 100644 --- a/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml +++ b/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml @@ -3,6 +3,11 @@ gate-functional-nova-network-dsvm-gceapi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml b/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml b/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml index 92639f47..8882d40d 100644 --- a/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuxi-dsvm-fullstack from old job gate-fuxi-dsvm-fullstack tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml b/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml +++ b/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml b/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml index b6363ff9..89dde92e 100644 --- a/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml +++ b/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-fuxi-dsvm-py35-fullstack from old job gate-fuxi-dsvm-py35-fullstack tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml index 86a33639..b7eb271b 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-dsvm-build-centos-source-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml index a670d8b5..8858465a 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-dsvm-build-oraclelinux-source-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml index 495f5ca9..01ca9514 100644 --- a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml +++ b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml @@ -3,6 +3,11 @@ gate-kolla-dsvm-build-ubuntu-source-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-placement-api-ref/post.yaml b/playbooks/legacy/gate-placement-api-ref/post.yaml index 044cee8a..1cfb1f9c 100644 --- a/playbooks/legacy/gate-placement-api-ref/post.yaml +++ b/playbooks/legacy/gate-placement-api-ref/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -22,9 +22,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -35,9 +35,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -48,9 +48,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -61,9 +61,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/gate-placement-api-ref/run.yaml b/playbooks/legacy/gate-placement-api-ref/run.yaml index f0ab63b4..548cc68c 100644 --- a/playbooks/legacy/gate-placement-api-ref/run.yaml +++ b/playbooks/legacy/gate-placement-api-ref/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gate-placement-api-ref from old job gate-placement-api-ref tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh placement-api-ref + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-training-labs-scripts/run.yaml b/playbooks/legacy/gate-training-labs-scripts/run.yaml index 9ef76116..ab794e84 100644 --- a/playbooks/legacy/gate-training-labs-scripts/run.yaml +++ b/playbooks/legacy/gate-training-labs-scripts/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gate-training-labs-scripts from old job gate-training-labs-scripts-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: ./tools/generate-labs $ZUUL_REFNAME + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml index e0ecb38f..f85bd9e7 100644 --- a/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml +++ b/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml index 153526f4..b63b2f6d 100644 --- a/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml +++ b/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gearman-plugin-hpi-artifact from old job gearman-plugin-hpi-artifact tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ mvn clean package -B -Dproject-version=$PROJECT_VER cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml b/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml index 35b1bbaa..17e9475e 100644 --- a/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml +++ b/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gearman-plugin-jenkinsci-upload from old job gearman-plugin-jenkinsci-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -9,6 +14,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,4 +33,5 @@ /usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \ $FILENAME_POM $FILENAME_HPI executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml b/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml index e6c40d18..187e81c1 100644 --- a/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ job gate-gearman-plugin-maven-build-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,6 +49,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gerrit-buck/post.yaml b/playbooks/legacy/gerrit-buck/post.yaml index 2c87e5fb..0d2e32f8 100644 --- a/playbooks/legacy/gerrit-buck/post.yaml +++ b/playbooks/legacy/gerrit-buck/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/test' mode: pull copy_links: true diff --git a/playbooks/legacy/gerrit-buck/run.yaml b/playbooks/legacy/gerrit-buck/run.yaml index 9a88bd85..e478ae2e 100644 --- a/playbooks/legacy/gerrit-buck/run.yaml +++ b/playbooks/legacy/gerrit-buck/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gerrit-buck from old job gate-gerrit-buck tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -12,10 +17,12 @@ sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -25,6 +32,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +46,7 @@ ant fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +71,7 @@ git submodule init git submodule update executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +87,5 @@ buck build release cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gerrit-package-buck/post.yaml b/playbooks/legacy/gerrit-package-buck/post.yaml index c6a7b427..e34a2b21 100644 --- a/playbooks/legacy/gerrit-package-buck/post.yaml +++ b/playbooks/legacy/gerrit-package-buck/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gerrit' mode: pull copy_links: true diff --git a/playbooks/legacy/gerrit-package-buck/run.yaml b/playbooks/legacy/gerrit-package-buck/run.yaml index b0a870e4..b6eff5f6 100644 --- a/playbooks/legacy/gerrit-package-buck/run.yaml +++ b/playbooks/legacy/gerrit-package-buck/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gerrit-package-buck from old job gerrit-package-buck tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -12,10 +17,12 @@ sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -25,6 +32,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +46,7 @@ ant fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +71,7 @@ git submodule init git submodule update executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -76,4 +86,5 @@ buck build release cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gitdm/run.yaml b/playbooks/legacy/gitdm/run.yaml index f1fae7c4..8e38154e 100644 --- a/playbooks/legacy/gitdm/run.yaml +++ b/playbooks/legacy/gitdm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-gitdm from old job gate-gitdm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ export LP_STATS=n bash ./do-it.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml b/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml +++ b/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml b/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml index 71516f14..faf3616d 100644 --- a/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml +++ b/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-glance-dsvm-grenade-multinode from old job gate-glance-dsvm-grenade-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,4 +41,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml index bee6a001..af151334 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml @@ -3,6 +3,11 @@ gate-glance_store-dsvm-functional-cinder-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml index e82bf8ce..0d45cb75 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml @@ -3,6 +3,11 @@ job gate-glance_store-dsvm-functional-filesystem-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml index 14677d0b..4746147a 100644 --- a/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml +++ b/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-glance_store-dsvm-functional-swift from old job gate-glance_store-dsvm-functional-swift-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml index 44574436..dd4ae407 100644 --- a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ old job gate-glanceclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glanceclient-dsvm-functional/post.yaml b/playbooks/legacy/glanceclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glanceclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/glanceclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glanceclient-dsvm-functional/run.yaml b/playbooks/legacy/glanceclient-dsvm-functional/run.yaml index 815decfa..464ab5d7 100644 --- a/playbooks/legacy/glanceclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/glanceclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-glanceclient-dsvm-functional from old job gate-glanceclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glare-dsvm/post.yaml b/playbooks/legacy/glare-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/glare-dsvm/post.yaml +++ b/playbooks/legacy/glare-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/glare-dsvm/run.yaml b/playbooks/legacy/glare-dsvm/run.yaml index 97a467db..6d6eea1e 100644 --- a/playbooks/legacy/glare-dsvm/run.yaml +++ b/playbooks/legacy/glare-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-glare-dsvm from old job gate-glare-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/golang-fmt/run.yaml b/playbooks/legacy/golang-fmt/run.yaml index be2714e2..15d46b3b 100644 --- a/playbooks/legacy/golang-fmt/run.yaml +++ b/playbooks/legacy/golang-fmt/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-golang-fmt from old job gate-{name}-golang-fmt-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +65,5 @@ set -x make env fmt executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/golang-unit/run.yaml b/playbooks/legacy/golang-unit/run.yaml index d4e8ce57..ad828171 100644 --- a/playbooks/legacy/golang-unit/run.yaml +++ b/playbooks/legacy/golang-unit/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-golang-unit from old job gate-{name}-golang-unit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +56,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +65,5 @@ set -x make env test executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/governance-tox-validate/post.yaml b/playbooks/legacy/governance-tox-validate/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/governance-tox-validate/post.yaml +++ b/playbooks/legacy/governance-tox-validate/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/governance-tox-validate/run.yaml b/playbooks/legacy/governance-tox-validate/run.yaml index 0fc33ee4..b655efc0 100644 --- a/playbooks/legacy/governance-tox-validate/run.yaml +++ b/playbooks/legacy/governance-tox-validate/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-governance-tox-validate from old job gate-governance-tox-validate-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-barbican/post.yaml b/playbooks/legacy/grenade-dsvm-barbican/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-barbican/post.yaml +++ b/playbooks/legacy/grenade-dsvm-barbican/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-barbican/run.yaml b/playbooks/legacy/grenade-dsvm-barbican/run.yaml index fa458ba6..552cb17b 100644 --- a/playbooks/legacy/grenade-dsvm-barbican/run.yaml +++ b/playbooks/legacy/grenade-dsvm-barbican/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-barbican from old job gate-grenade-dsvm-barbican-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml b/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml +++ b/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml b/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml index 0907ddb2..e513564c 100644 --- a/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml +++ b/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-ceilometer from old job gate-grenade-dsvm-ceilometer-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,4 +39,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml index 240f2de6..2873b2f8 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-bak from old job gate-grenade-dsvm-cinder-mn-sub-bak-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml index 76704abd..0ca2dee3 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-volbak from old job gate-grenade-dsvm-cinder-mn-sub-volbak-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml index 281e6b50..ad62c8e9 100644 --- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml @@ -3,6 +3,11 @@ gate-grenade-dsvm-cinder-mn-sub-volschbak-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml b/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml +++ b/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml b/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml index 3eaacf01..9e0b9c95 100644 --- a/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml +++ b/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-designate-pdns4 from old job gate-grenade-dsvm-designate-pdns4-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml +++ b/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml index eb716fd0..95909c06 100644 --- a/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml +++ b/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-heat-multinode from old job gate-grenade-dsvm-heat-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-heat/post.yaml b/playbooks/legacy/grenade-dsvm-heat/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-heat/post.yaml +++ b/playbooks/legacy/grenade-dsvm-heat/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-heat/run.yaml b/playbooks/legacy/grenade-dsvm-heat/run.yaml index 9a209e5d..5d9a9b2f 100644 --- a/playbooks/legacy/grenade-dsvm-heat/run.yaml +++ b/playbooks/legacy/grenade-dsvm-heat/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-heat from old job gate-grenade-dsvm-heat-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml b/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml b/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml index d3808a63..5b47c297 100644 --- a/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-ironic-inspector from old job gate-grenade-dsvm-ironic-inspector-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +44,7 @@ export DEVSTACK_GATE_TLSPROXY=0 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +53,7 @@ export GRENADE_PLUGINRC+=$'\n'"enable_grenade_plugin ironic-inspector https://git.openstack.org/openstack/ironic-inspector" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,6 +97,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -125,6 +136,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -203,4 +215,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml index e52fe087..c325b99b 100644 --- a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml @@ -3,6 +3,11 @@ job gate-grenade-dsvm-ironic-multinode-multitenant-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -25,6 +31,7 @@ export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +45,7 @@ export DEVSTACK_GATE_TLSPROXY=0 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +54,7 @@ export GRENADE_PLUGINRC+=$'\n'"enable_grenade_plugin networking-generic-switch https://git.openstack.org/openstack/networking-generic-switch" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +63,7 @@ export DEVSTACK_GATE_TOPOLOGY="multinode" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,6 +89,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -104,6 +115,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -121,6 +133,7 @@ export TEMPEST_CONCURRENCY=4 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -199,4 +212,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic/post.yaml b/playbooks/legacy/grenade-dsvm-ironic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-ironic/post.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-ironic/run.yaml b/playbooks/legacy/grenade-dsvm-ironic/run.yaml index 48228b61..cdde681c 100644 --- a/playbooks/legacy/grenade-dsvm-ironic/run.yaml +++ b/playbooks/legacy/grenade-dsvm-ironic/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-ironic from old job gate-grenade-dsvm-ironic-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +44,7 @@ export DEVSTACK_GATE_TLSPROXY=0 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +62,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,6 +88,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -157,4 +167,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-manila/post.yaml b/playbooks/legacy/grenade-dsvm-manila/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-manila/post.yaml +++ b/playbooks/legacy/grenade-dsvm-manila/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-manila/run.yaml b/playbooks/legacy/grenade-dsvm-manila/run.yaml index 3daa71f8..8a7a812b 100644 --- a/playbooks/legacy/grenade-dsvm-manila/run.yaml +++ b/playbooks/legacy/grenade-dsvm-manila/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-manila from old job gate-grenade-dsvm-manila-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml +++ b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml index b953f601..5ae31e4c 100644 --- a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml +++ b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-mongodb-zaqar from old job gate-grenade-dsvm-mongodb-zaqar-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml index 01f6ade2..c75d3c76 100644 --- a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml @@ -3,6 +3,11 @@ gate-grenade-dsvm-networking-midonet-ml2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml index 34763c9a..7b748eeb 100644 --- a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-networking-midonet-v2 from old job gate-grenade-dsvm-networking-midonet-v2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml b/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml b/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml index 65411b24..5c0b17dd 100644 --- a/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-networking-odl from old job gate-grenade-dsvm-networking-odl-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,4 +42,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml b/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml b/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml index 6580f6c3..c2facced 100644 --- a/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml +++ b/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-networking-ovn from old job gate-grenade-dsvm-networking-ovn-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml index 1663353d..984bf6d9 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron-dvr-multinode from old job gate-grenade-dsvm-neutron-dvr-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml index 116f8602..4ffef046 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron-forward from old job gate-grenade-dsvm-neutron-forward-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,4 +39,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml index 0af56c02..52b85f45 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml @@ -3,6 +3,11 @@ gate-grenade-dsvm-neutron-fwaas-multinode-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml index 728c8885..fffc78e0 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron-libs from old job gate-grenade-dsvm-neutron-libs-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml index 654f84af..56b51596 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-grenade-dsvm-neutron-linuxbridge-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml index 81bb6880..ca0f358d 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml @@ -3,6 +3,11 @@ old job gate-grenade-dsvm-neutron-multinode-live-migration-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml index b91b2e6f..8d5ec285 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml @@ -3,6 +3,11 @@ old job gate-grenade-dsvm-neutron-multinode-zero-downtime-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml index 6ae28934..d6df1d5c 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron-multinode from old job gate-grenade-dsvm-neutron-multinode-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml index abc1abb9..c1e39aaa 100644 --- a/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron-nova-next from old job gate-grenade-dsvm-neutron-nova-next-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron/post.yaml b/playbooks/legacy/grenade-dsvm-neutron/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-neutron/post.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-neutron/run.yaml b/playbooks/legacy/grenade-dsvm-neutron/run.yaml index b74032a6..31701b8c 100644 --- a/playbooks/legacy/grenade-dsvm-neutron/run.yaml +++ b/playbooks/legacy/grenade-dsvm-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-neutron from old job gate-grenade-dsvm-neutron-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml b/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml +++ b/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml b/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml index 947b70c6..2496dc46 100644 --- a/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml +++ b/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-redis-zaqar from old job gate-grenade-dsvm-redis-zaqar-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-sahara/post.yaml b/playbooks/legacy/grenade-dsvm-sahara/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-sahara/post.yaml +++ b/playbooks/legacy/grenade-dsvm-sahara/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-sahara/run.yaml b/playbooks/legacy/grenade-dsvm-sahara/run.yaml index 1b78ea15..4c76b04a 100644 --- a/playbooks/legacy/grenade-dsvm-sahara/run.yaml +++ b/playbooks/legacy/grenade-dsvm-sahara/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-sahara from old job gate-grenade-dsvm-sahara-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-trove/post.yaml b/playbooks/legacy/grenade-dsvm-trove/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/grenade-dsvm-trove/post.yaml +++ b/playbooks/legacy/grenade-dsvm-trove/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/grenade-dsvm-trove/run.yaml b/playbooks/legacy/grenade-dsvm-trove/run.yaml index 4d4a8b29..b37521b3 100644 --- a/playbooks/legacy/grenade-dsvm-trove/run.yaml +++ b/playbooks/legacy/grenade-dsvm-trove/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-dsvm-trove from old job gate-grenade-dsvm-trove tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,4 +42,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-publish-docs/run.yaml b/playbooks/legacy/grenade-publish-docs/run.yaml index 81a2ffa1..1a4bcc0f 100644 --- a/playbooks/legacy/grenade-publish-docs/run.yaml +++ b/playbooks/legacy/grenade-publish-docs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-grenade-publish-docs from old job grenade-publish-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh docs + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +69,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > doc/build/html/.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml b/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml b/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml index 717a6220..332871d4 100644 --- a/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-group-based-policy-dsvm-aim from old job gate-group-based-policy-dsvm-aim-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml index 9e51b5de..2927a4be 100644 --- a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-group-based-policy-dsvm-functional-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml b/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml b/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml index 93201be8..49726c19 100644 --- a/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-group-based-policy-dsvm-functional from old job gate-group-based-policy-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml index d40359a2..604c52ec 100644 --- a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ job gate-group-based-policy-dsvm-nfp-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml index e7a4b76f..6a063fc2 100644 --- a/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-group-based-policy-dsvm-nfp from old job gate-group-based-policy-dsvm-nfp-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml index 9575e334..367ec01c 100644 --- a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ old job gate-group-based-policy-dsvm-rally-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml b/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml b/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml index 71fb019b..568560ec 100644 --- a/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml +++ b/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-group-based-policy-dsvm-rally from old job gate-group-based-policy-dsvm-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-release-branch/post.yaml b/playbooks/legacy/groups-release-branch/post.yaml index 10e9c455..874d627d 100644 --- a/playbooks/legacy/groups-release-branch/post.yaml +++ b/playbooks/legacy/groups-release-branch/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true diff --git a/playbooks/legacy/groups-release-branch/run.yaml b/playbooks/legacy/groups-release-branch/run.yaml index 178fac3d..372f92c0 100644 --- a/playbooks/legacy/groups-release-branch/run.yaml +++ b/playbooks/legacy/groups-release-branch/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-groups-release-branch from old job groups-release-branch tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +87,5 @@ mkdir -p drupal-updates/release-history/groups scripts/release-manifest.php --version=$VERSION --releasetar=groups-$PROJECT_VER.tar.gz --md5=$MD5HASH --outfile=$OUTFILE --manifest-url=$MANIFESTURL --verbose --debug executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-release-master/post.yaml b/playbooks/legacy/groups-release-master/post.yaml index 10e9c455..874d627d 100644 --- a/playbooks/legacy/groups-release-master/post.yaml +++ b/playbooks/legacy/groups-release-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/groups/ mode: pull copy_links: true diff --git a/playbooks/legacy/groups-release-master/run.yaml b/playbooks/legacy/groups-release-master/run.yaml index cdeaafc7..1bd45096 100644 --- a/playbooks/legacy/groups-release-master/run.yaml +++ b/playbooks/legacy/groups-release-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-groups-release-master from old job groups-release-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +87,5 @@ mkdir -p drupal-updates/release-history/groups scripts/release-manifest.php --version=$VERSION --releasetar=groups-$PROJECT_VER.tar.gz --md5=$MD5HASH --outfile=$OUTFILE --manifest-url=$MANIFESTURL --verbose --debug executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-unittests/post.yaml b/playbooks/legacy/groups-unittests/post.yaml index 5850ab1d..825c345d 100644 --- a/playbooks/legacy/groups-unittests/post.yaml +++ b/playbooks/legacy/groups-unittests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/groups-unittests/run.yaml b/playbooks/legacy/groups-unittests/run.yaml index 3d88bd52..222c0986 100644 --- a/playbooks/legacy/groups-unittests/run.yaml +++ b/playbooks/legacy/groups-unittests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-groups-unittests from old job gate-groups-unittests tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +62,5 @@ export PATH=./drush:$PATH scripts/dev-build.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/hacking-integration-nova/run.yaml b/playbooks/legacy/hacking-integration-nova/run.yaml index 47eb75fa..06199050 100644 --- a/playbooks/legacy/hacking-integration-nova/run.yaml +++ b/playbooks/legacy/hacking-integration-nova/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-hacking-integration-nova from old job gate-hacking-integration-nova tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -13,6 +19,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,4 +37,5 @@ tox -e integration openstack nova \ $WORKSPACE/openstack/nova executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml index 7ef0f7c5..378fa89a 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml @@ -3,6 +3,11 @@ old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-amqp1-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml index 52809982..73948502 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ from old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml index 26303492..8fed543d 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml @@ -3,6 +3,11 @@ from old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-non-apache-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml index d9e21c99..678bc75d 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml @@ -3,6 +3,11 @@ old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml index e00b9310..16477ad0 100644 --- a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml @@ -3,6 +3,11 @@ job gate-heat-dsvm-functional-convg-mysql-lbaasv2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml +++ b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml index 2310e883..fac4d5e2 100644 --- a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml +++ b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml @@ -3,6 +3,11 @@ job gate-heat-dsvm-functional-orig-mysql-lbaasv2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -123,4 +129,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-templates-dsvm/post.yaml b/playbooks/legacy/heat-templates-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/heat-templates-dsvm/post.yaml +++ b/playbooks/legacy/heat-templates-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-templates-dsvm/run.yaml b/playbooks/legacy/heat-templates-dsvm/run.yaml index d5adb445..b8a6305c 100644 --- a/playbooks/legacy/heat-templates-dsvm/run.yaml +++ b/playbooks/legacy/heat-templates-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-heat-templates-dsvm from old job gate-heat-templates-dsvm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml b/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml +++ b/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml b/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml index e3b31be3..f707bfdc 100644 --- a/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml +++ b/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-heat-translator-tox-py27-tp from old job gate-heat-translator-tox-py27-tp-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-tp + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heatclient-dsvm-functional/post.yaml b/playbooks/legacy/heatclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/heatclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/heatclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/heatclient-dsvm-functional/run.yaml b/playbooks/legacy/heatclient-dsvm-functional/run.yaml index c3a75601..d8c3a950 100644 --- a/playbooks/legacy/heatclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/heatclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-heatclient-dsvm-functional from old job gate-heatclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml b/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml +++ b/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml b/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml index 7ed910a9..9a1f2f59 100644 --- a/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml +++ b/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-dsvm-tempest-plugin from old job gate-horizon-dsvm-tempest-plugin-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,4 +42,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml b/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml index f936b676..ecad50e7 100644 --- a/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml +++ b/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-selenium-headless-legacy from old job gate-horizon-selenium-headless-legacy-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x NOSE_WITH_XUNIT=1 tox -evenv -- /bin/bash run_tests.sh -N --only-selenium --selenium-headless executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-selenium-headless/run.yaml b/playbooks/legacy/horizon-selenium-headless/run.yaml index fa5c7592..58f1dd0e 100644 --- a/playbooks/legacy/horizon-selenium-headless/run.yaml +++ b/playbooks/legacy/horizon-selenium-headless/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-selenium-headless from old job gate-horizon-selenium-headless-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x NOSE_WITH_XUNIT=1 tox -e selenium-headless executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj110/post.yaml b/playbooks/legacy/horizon-tox-py27dj110/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/horizon-tox-py27dj110/post.yaml +++ b/playbooks/legacy/horizon-tox-py27dj110/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/horizon-tox-py27dj110/run.yaml b/playbooks/legacy/horizon-tox-py27dj110/run.yaml index ad81424b..61a49603 100644 --- a/playbooks/legacy/horizon-tox-py27dj110/run.yaml +++ b/playbooks/legacy/horizon-tox-py27dj110/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-tox-py27dj110 from old job gate-horizon-tox-py27dj110-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj18/post.yaml b/playbooks/legacy/horizon-tox-py27dj18/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/horizon-tox-py27dj18/post.yaml +++ b/playbooks/legacy/horizon-tox-py27dj18/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/horizon-tox-py27dj18/run.yaml b/playbooks/legacy/horizon-tox-py27dj18/run.yaml index 696784fe..99c03fd6 100644 --- a/playbooks/legacy/horizon-tox-py27dj18/run.yaml +++ b/playbooks/legacy/horizon-tox-py27dj18/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-tox-py27dj18 from old job gate-horizon-tox-py27dj18-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj18 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj19/post.yaml b/playbooks/legacy/horizon-tox-py27dj19/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/horizon-tox-py27dj19/post.yaml +++ b/playbooks/legacy/horizon-tox-py27dj19/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/horizon-tox-py27dj19/run.yaml b/playbooks/legacy/horizon-tox-py27dj19/run.yaml index 58f8c40d..bc72d870 100644 --- a/playbooks/legacy/horizon-tox-py27dj19/run.yaml +++ b/playbooks/legacy/horizon-tox-py27dj19/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-horizon-tox-py27dj19 from old job gate-horizon-tox-py27dj19-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/i18n-tox-doc-docs/post.yaml b/playbooks/legacy/i18n-tox-doc-docs/post.yaml index fe356df3..3c7d9eff 100644 --- a/playbooks/legacy/i18n-tox-doc-docs/post.yaml +++ b/playbooks/legacy/i18n-tox-doc-docs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/i18n-tox-doc-docs/run.yaml b/playbooks/legacy/i18n-tox-doc-docs/run.yaml index 47e352e7..0ad5666a 100644 --- a/playbooks/legacy/i18n-tox-doc-docs/run.yaml +++ b/playbooks/legacy/i18n-tox-doc-docs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-i18n-tox-doc-docs from old job i18n-tox-doc-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh docs + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-ansible/post.yaml b/playbooks/legacy/infra-ansible/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/infra-ansible/post.yaml +++ b/playbooks/legacy/infra-ansible/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/infra-ansible/run.yaml b/playbooks/legacy/infra-ansible/run.yaml index 29d2a77d..0dce53af 100644 --- a/playbooks/legacy/infra-ansible/run.yaml +++ b/playbooks/legacy/infra-ansible/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-ansible from old job gate-infra-ansible tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ansible-syntax-check + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-publications-publish-index/run.yaml b/playbooks/legacy/infra-publications-publish-index/run.yaml index 233a1a2f..1855cec9 100644 --- a/playbooks/legacy/infra-publications-publish-index/run.yaml +++ b/playbooks/legacy/infra-publications-publish-index/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-publications-publish-index from old job infra-publications-publish-index tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +62,7 @@ fi ./make-index executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +72,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > output//.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-publications-publish/run.yaml b/playbooks/legacy/infra-publications-publish/run.yaml index 73741ea6..12555d6f 100644 --- a/playbooks/legacy/infra-publications-publish/run.yaml +++ b/playbooks/legacy/infra-publications-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-publications-publish from old job infra-publications-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +58,7 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > ./.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +75,5 @@ mv .root-marker _out/$NAME/ done executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml b/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml +++ b/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml b/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml index 5ddd1f64..aaf841e5 100644 --- a/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml +++ b/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-puppet-apply-3-centos-7 from old job gate-infra-puppet-apply-3-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ fi ./tools/apply-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml index c874190e..e55b1017 100644 --- a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-puppet-apply-3-ubuntu-trusty from old job gate-infra-puppet-apply-3-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ fi ./tools/apply-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3/post.yaml b/playbooks/legacy/infra-puppet-apply-3/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/infra-puppet-apply-3/post.yaml +++ b/playbooks/legacy/infra-puppet-apply-3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/infra-puppet-apply-3/run.yaml b/playbooks/legacy/infra-puppet-apply-3/run.yaml index ff187bad..c99cd7c8 100644 --- a/playbooks/legacy/infra-puppet-apply-3/run.yaml +++ b/playbooks/legacy/infra-puppet-apply-3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-puppet-apply-3 from old job gate-infra-puppet-apply-3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ fi ./tools/apply-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml b/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml +++ b/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml b/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml index f76a7809..7cfa0783 100644 --- a/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml +++ b/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-infra-puppet-apply-4-centos-7 from old job gate-infra-puppet-apply-4-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -23,4 +29,5 @@ fi ./tools/apply-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml b/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml index 8acdf30f..9b897b33 100644 --- a/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml +++ b/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-instack-undercloud-puppet-lint from old job gate-instack-undercloud-puppet-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +98,5 @@ gem install puppetlabs_spec_helper ./.bundled_gems/rake lint 2>&1 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml +++ b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml index a32052a2..924ade8a 100644 --- a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml +++ b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml @@ -3,6 +3,11 @@ gate-install-dsvm-default-kuryr-kubernetes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml +++ b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml index eb92d7c7..2ff370be 100644 --- a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml +++ b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml @@ -3,6 +3,11 @@ job gate-install-dsvm-dragonflow-kuryr-kubernetes-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml index 3c96b72e..b1103951 100644 --- a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-install-dsvm-kuryr-libnetwork-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml index 2797782c..b1a6ed22 100644 --- a/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-install-dsvm-kuryr-libnetwork from old job gate-install-dsvm-kuryr-libnetwork-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml +++ b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml index ddad653e..0ef7bb7f 100644 --- a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml +++ b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-install-dsvm-networking-ovn-kuryr from old job gate-install-dsvm-networking-ovn-kuryr tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-guide/run.yaml b/playbooks/legacy/install-guide/run.yaml index 6e6a7b4b..069a4a1f 100644 --- a/playbooks/legacy/install-guide/run.yaml +++ b/playbooks/legacy/install-guide/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-install-guide from old job gate-{name}-install-guide tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +127,5 @@ exit executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-doc8/post.yaml b/playbooks/legacy/interop-tox-doc8/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/interop-tox-doc8/post.yaml +++ b/playbooks/legacy/interop-tox-doc8/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/interop-tox-doc8/run.yaml b/playbooks/legacy/interop-tox-doc8/run.yaml index 6d3a316b..d9b0d4fa 100644 --- a/playbooks/legacy/interop-tox-doc8/run.yaml +++ b/playbooks/legacy/interop-tox-doc8/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-interop-tox-doc8 from old job gate-interop-tox-doc8-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh doc8 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-jsonlint/post.yaml b/playbooks/legacy/interop-tox-jsonlint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/interop-tox-jsonlint/post.yaml +++ b/playbooks/legacy/interop-tox-jsonlint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/interop-tox-jsonlint/run.yaml b/playbooks/legacy/interop-tox-jsonlint/run.yaml index d5eee86d..abc2acf3 100644 --- a/playbooks/legacy/interop-tox-jsonlint/run.yaml +++ b/playbooks/legacy/interop-tox-jsonlint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-interop-tox-jsonlint from old job gate-interop-tox-jsonlint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jsonlint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-jsonschema/post.yaml b/playbooks/legacy/interop-tox-jsonschema/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/interop-tox-jsonschema/post.yaml +++ b/playbooks/legacy/interop-tox-jsonschema/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/interop-tox-jsonschema/run.yaml b/playbooks/legacy/interop-tox-jsonschema/run.yaml index 91743bf7..00601ec8 100644 --- a/playbooks/legacy/interop-tox-jsonschema/run.yaml +++ b/playbooks/legacy/interop-tox-jsonschema/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-interop-tox-jsonschema from old job gate-interop-tox-jsonschema-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jsonschema + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/irc-meetings-tox-ical/post.yaml b/playbooks/legacy/irc-meetings-tox-ical/post.yaml index 6299209b..114fe092 100644 --- a/playbooks/legacy/irc-meetings-tox-ical/post.yaml +++ b/playbooks/legacy/irc-meetings-tox-ical/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/irc-meetings-tox-ical/run.yaml b/playbooks/legacy/irc-meetings-tox-ical/run.yaml index c631eccd..fe428882 100644 --- a/playbooks/legacy/irc-meetings-tox-ical/run.yaml +++ b/playbooks/legacy/irc-meetings-tox-ical/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-irc-meetings-tox-ical from old job gate-irc-meetings-tox-ical tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ical + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-dsvm-functional/post.yaml b/playbooks/legacy/ironic-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ironic-dsvm-functional/post.yaml +++ b/playbooks/legacy/ironic-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-dsvm-functional/run.yaml b/playbooks/legacy/ironic-dsvm-functional/run.yaml index a6f722a3..737281d2 100644 --- a/playbooks/legacy/ironic-dsvm-functional/run.yaml +++ b/playbooks/legacy/ironic-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-dsvm-functional from old job gate-ironic-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-dsvm-standalone/post.yaml b/playbooks/legacy/ironic-dsvm-standalone/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ironic-dsvm-standalone/post.yaml +++ b/playbooks/legacy/ironic-dsvm-standalone/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-dsvm-standalone/run.yaml b/playbooks/legacy/ironic-dsvm-standalone/run.yaml index 3733e286..bb5dc459 100644 --- a/playbooks/legacy/ironic-dsvm-standalone/run.yaml +++ b/playbooks/legacy/ironic-dsvm-standalone/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-dsvm-standalone from old job gate-ironic-dsvm-standalone-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ export TEMPEST_CONCURRENCY=4 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic_standalone" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-inspector-tox-func/post.yaml b/playbooks/legacy/ironic-inspector-tox-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ironic-inspector-tox-func/post.yaml +++ b/playbooks/legacy/ironic-inspector-tox-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-inspector-tox-func/run.yaml b/playbooks/legacy/ironic-inspector-tox-func/run.yaml index a560658a..e75f0b43 100644 --- a/playbooks/legacy/ironic-inspector-tox-func/run.yaml +++ b/playbooks/legacy/ironic-inspector-tox-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-inspector-tox-func from old job gate-ironic-inspector-tox-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-inspector-tox-func3/post.yaml b/playbooks/legacy/ironic-inspector-tox-func3/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ironic-inspector-tox-func3/post.yaml +++ b/playbooks/legacy/ironic-inspector-tox-func3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-inspector-tox-func3/run.yaml b/playbooks/legacy/ironic-inspector-tox-func3/run.yaml index b3180a4a..fdbcbd2f 100644 --- a/playbooks/legacy/ironic-inspector-tox-func3/run.yaml +++ b/playbooks/legacy/ironic-inspector-tox-func3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-inspector-tox-func3 from old job gate-ironic-inspector-tox-func3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func3 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml index 8b4bbd12..e9090f58 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/coreos/files/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/coreos/' mode: pull copy_links: true @@ -33,9 +33,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml b/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml index a44f0958..f16933f5 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml @@ -3,6 +3,11 @@ ironic-python-agent-buildimage-coreos-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +94,5 @@ esac ERRORS=0 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml index 20cb1b70..1a939bbb 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/files/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/' mode: pull copy_links: true @@ -33,9 +33,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml index 9a13fbea..282affbf 100644 --- a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml +++ b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml @@ -3,6 +3,11 @@ ironic-python-agent-buildimage-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +94,5 @@ esac ERRORS=0 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-tox-func/post.yaml b/playbooks/legacy/ironic-python-agent-tox-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ironic-python-agent-tox-func/post.yaml +++ b/playbooks/legacy/ironic-python-agent-tox-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-python-agent-tox-func/run.yaml b/playbooks/legacy/ironic-python-agent-tox-func/run.yaml index cef5fe9b..20f7958e 100644 --- a/playbooks/legacy/ironic-python-agent-tox-func/run.yaml +++ b/playbooks/legacy/ironic-python-agent-tox-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-python-agent-tox-func from old job gate-ironic-python-agent-tox-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml b/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml +++ b/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml b/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml index 4ab8cb7d..533c0e74 100644 --- a/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml +++ b/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironic-staging-drivers-dsvm from old job gate-ironic-staging-drivers-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironicclient-dsvm-functional/post.yaml b/playbooks/legacy/ironicclient-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ironicclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/ironicclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ironicclient-dsvm-functional/run.yaml b/playbooks/legacy/ironicclient-dsvm-functional/run.yaml index 58eb8a91..2fcd6286 100644 --- a/playbooks/legacy/ironicclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/ironicclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ironicclient-dsvm-functional from old job gate-ironicclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml index 8a94ce6a..3e6190b5 100644 --- a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml +++ b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/plugins/its-storyboard' mode: pull copy_links: true diff --git a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml index ec71604d..441c8d41 100644 --- a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml +++ b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml @@ -3,6 +3,11 @@ job its-storyboard-gerrit-plugin-stable-2.13 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -13,10 +18,12 @@ sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -26,6 +33,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +47,7 @@ ant fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +73,5 @@ buck build plugins/its-storyboard:its-storyboard cp ./buck-out/gen/plugins/its-storyboard/its-storyboard.jar ./buck-out/gen/plugins/its-storyboard/its-storyboard-$PROJECT_VER.jar executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml index b354ac80..530a901d 100644 --- a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml +++ b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/plugins/javamelody' mode: pull copy_links: true diff --git a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml index 3ff4dabc..1c66d6c2 100644 --- a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml +++ b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml @@ -3,6 +3,11 @@ javamelody-gerrit-plugin-stable-2.13 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -13,10 +18,12 @@ sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -26,6 +33,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +47,7 @@ ant fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +73,5 @@ buck build plugins/javamelody:javamelody cp ./buck-out/gen/plugins/javamelody/javamelody.jar ./buck-out/gen/plugins/javamelody/javamelody-$PROJECT_VER.jar executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml b/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml index 8d8e59d4..23ac7784 100644 --- a/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml +++ b/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml @@ -3,6 +3,11 @@ job js-generator-openstack-nodejs6-npm-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +66,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,6 +76,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -93,6 +102,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -107,6 +117,7 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,4 +127,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > doc/build/html/.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml index c7123720..ca5657de 100644 --- a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml index 6b30df34..eb904324 100644 --- a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml @@ -3,6 +3,11 @@ from old job js-openstack-lib-dsvm-nodejs4-npm-run-functional-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,12 +103,14 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -143,6 +156,7 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -157,4 +171,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml index c7123720..ca5657de 100644 --- a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml index 2da77cb8..39b4e9f4 100644 --- a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml @@ -3,6 +3,11 @@ from old job js-openstack-lib-dsvm-nodejs6-npm-run-functional-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,12 +103,14 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -143,6 +156,7 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -157,4 +171,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml b/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml index 651d6b66..217e57e4 100644 --- a/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml +++ b/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml @@ -3,6 +3,11 @@ js-openstack-lib-nodejs6-npm-sdk-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +66,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,6 +76,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -93,6 +102,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -107,6 +117,7 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,4 +127,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > doc/build/html/.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml index 7af8b78a..556427b5 100644 --- a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml @@ -3,6 +3,11 @@ job gate-k8s-cloud-provider-golang-dsvm-external-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +92,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml index 84babe66..9ae82973 100644 --- a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml @@ -3,6 +3,11 @@ gate-k8s-cloud-provider-golang-dsvm-local-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +92,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml index fe0317b9..b4442653 100644 --- a/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml +++ b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml @@ -3,6 +3,11 @@ job gate-k8s-docker-suite-app-murano-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -190,4 +198,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/karbor-dsvm-fullstack/post.yaml b/playbooks/legacy/karbor-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/karbor-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/karbor-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/karbor-dsvm-fullstack/run.yaml b/playbooks/legacy/karbor-dsvm-fullstack/run.yaml index e71d0ac5..51e5b7b3 100644 --- a/playbooks/legacy/karbor-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/karbor-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-karbor-dsvm-fullstack from old job gate-karbor-dsvm-fullstack-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +45,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -76,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml b/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml +++ b/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml b/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml index fbf210da..ddc326c4 100644 --- a/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml +++ b/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-keystone-dsvm-functional-v3-only from old job gate-keystone-dsvm-functional-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-functional/post.yaml b/playbooks/legacy/keystone-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/keystone-dsvm-functional/post.yaml +++ b/playbooks/legacy/keystone-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/keystone-dsvm-functional/run.yaml b/playbooks/legacy/keystone-dsvm-functional/run.yaml index bbfc2fc3..ece1094e 100644 --- a/playbooks/legacy/keystone-dsvm-functional/run.yaml +++ b/playbooks/legacy/keystone-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-keystone-dsvm-functional from old job gate-keystone-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml b/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml +++ b/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml b/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml index d3bc1e04..eebeba96 100644 --- a/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml +++ b/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-keystone-dsvm-grenade-multinode from old job gate-keystone-dsvm-grenade-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml +++ b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml index 7438f0e3..0aa9faeb 100644 --- a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml +++ b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml @@ -3,6 +3,11 @@ gate-keystone-dsvm-py35-functional-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +41,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-tox-patch_cover/post.yaml b/playbooks/legacy/keystone-tox-patch_cover/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/keystone-tox-patch_cover/post.yaml +++ b/playbooks/legacy/keystone-tox-patch_cover/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/keystone-tox-patch_cover/run.yaml b/playbooks/legacy/keystone-tox-patch_cover/run.yaml index 61ca5e00..4d2d314e 100644 --- a/playbooks/legacy/keystone-tox-patch_cover/run.yaml +++ b/playbooks/legacy/keystone-tox-patch_cover/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-keystone-tox-patch_cover from old job gate-keystone-tox-patch_cover-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh patch_cover + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml b/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml b/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml index 41b18b15..0af97275 100644 --- a/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-keystoneclient-dsvm-functional from old job gate-keystoneclient-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml b/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml +++ b/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml b/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml index 36e1e97b..59d974ef 100644 --- a/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml +++ b/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kingbird-dsvm-multiregion from old job gate-kingbird-dsvm-multiregion-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml index 456095c7..6f3ead5b 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-centos-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml index 65d16a10..502a6bbf 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-centos-source-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml index 28b75c05..eff176e5 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml index 508642e1..60ac74a0 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml index 69f0c01b..cc1274c0 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml index 137fc243..63ba7435 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml index 2b91ec1c..cf06a8d8 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml index b18d9eab..37a272c9 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml index dcf2b5a0..6fe17ab8 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml index b3d41a27..b8545f7e 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml index c542218b..1e2a5985 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml index 85235ef1..c45d00bf 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml index 5a37226d..febd6f49 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml index 58ec2a75..2b804401 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml index 964c80fe..20034454 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml index 6ab8591d..774b65e8 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml index 3f0c494f..26d9fd78 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml @@ -3,6 +3,11 @@ job gate-kolla-ansible-dsvm-deploy-ubuntu-binary-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=binary tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml index 9c3a6cd1..03c6ea73 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml @@ -3,6 +3,11 @@ job gate-kolla-ansible-dsvm-deploy-ubuntu-source-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml index b092888c..c695d816 100644 --- a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml +++ b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ export INSTALL_TYPE=source tools/setup_gate.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml index 8a212db8..5291e74c 100644 --- a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-kolla-dsvm-build-centos-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml index 18e12670..a6057aa6 100644 --- a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml index 75062873..10ad605a 100644 --- a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml @@ -3,6 +3,11 @@ job kolla-dsvm-build-centos-source-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml index 96ec040f..55c5765b 100644 --- a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-dsvm-build-oraclelinux-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml index 18e12670..a6057aa6 100644 --- a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml index 5553a66c..6759253a 100644 --- a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml @@ -3,6 +3,11 @@ old job kolla-dsvm-build-oraclelinux-source-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml index 97110215..63675fe4 100644 --- a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kolla-dsvm-build-ubuntu-binary from old job gate-kolla-dsvm-build-ubuntu-binary-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml index 18e12670..a6057aa6 100644 --- a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml index b7d32d1e..2a45b7bf 100644 --- a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kolla-dsvm-build-ubuntu-source from old job kolla-dsvm-build-ubuntu-source-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml index db5b693c..a81ebb83 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-kolla-dsvm-deploy-centos-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml index 9f58363f..6809f6d2 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-kolla-dsvm-deploy-centos-source-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml index 79e7db35..dcb9a5ee 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-dsvm-deploy-oraclelinux-binary-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml index 86e25a2d..b43a8c25 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-dsvm-deploy-oraclelinux-source-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml index 6061e30c..c3a4b1ec 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kolla-dsvm-deploy-ubuntu-binary from old job gate-kolla-dsvm-deploy-ubuntu-binary-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml index 3ace42fc..93afa21d 100644 --- a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kolla-dsvm-deploy-ubuntu-source from old job gate-kolla-dsvm-deploy-ubuntu-source-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ tools/gate_run.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml index 0c6c7f3d..37a3d6f9 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-multi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml index 13e29a65..a6d727bd 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-reboot-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph-reboot centos-7-2-node shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml index 5172add7..398fc84a 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml index 6db96ee5..ab7c9669 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-external-ovs-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary external-ovs centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml index 2ece13c1..762763e1 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary helm-compute-kit centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml index 97535677..55b5836c 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary helm-entrypoint centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml index 9fd4e95d..39b6d77c 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-operator-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary helm-operator centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml index 29dd3ef3..d40d32ac 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-centos-binary-2-iscsi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml index 786c81fd..513db99a 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-3-ceph-multi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 3 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml index 677360dc..d0f492af 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-4-ceph-multi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml index c2cfb58e..62673524 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary helm-compute-kit centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml index 301151fb..b405f69e 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary helm-entrypoint centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml index e0c51573..624c2442 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-binary-t-ceph-multi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell t gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml index 8931fc96..f95750be 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-source-4-helm-compute-kit-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos source helm-compute-kit centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml index 97f94aff..68162c98 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-source-4-helm-entrypoint-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos source helm-entrypoint centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml index 62ef8300..b0ec775e 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-centos-source-4-ironic-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos source ironic centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml index 8c027b5e..0071eb5f 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-centos-source-4-microchart-ansible-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos source microchart-ansible centos-7 shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml index 34a9af3e..30fe6a11 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-centos-source-t-iscsi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos source iscsi centos-7 shell t gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml index afb5263f..4a885c1a 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-ubuntu-binary-2-ceph-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml index b53e9cef..10c8d538 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml index 93bcb4aa..1e21ac11 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-ubuntu-source-4-ironic-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu source ironic ubuntu-xenial shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml index fc630e4d..bfb40a78 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml @@ -3,6 +3,11 @@ from old job gate-kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu source microchart-ansible ubuntu-xenial shell 4 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml index ed914e0d..cc90aa0f 100644 --- a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-deploy-ubuntu-source-t-iscsi-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu source iscsi ubuntu-xenial shell t gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml index f7e29811..c12c2167 100644 --- a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-upgrade-centos-binary-2-ceph-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh upgrade centos binary ceph centos-7 shell 2 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml index 78d6e868..9935b949 100644 --- a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml @@ -3,6 +3,11 @@ old job gate-kolla-kubernetes-upgrade-centos-binary-3-ceph-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh upgrade centos binary ceph centos-7 shell 3 gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml index b2474edb..b1a2ffc3 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml @@ -3,6 +3,11 @@ gate-kuryr-libnetwork-dsvm-fullstack-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml index 891bff93..b818353e 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kuryr-libnetwork-dsvm-fullstack from old job gate-kuryr-libnetwork-dsvm-fullstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml index 21aa9636..f2b35909 100644 --- a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-kuryr-libnetwork-dsvm-rally from old job gate-kuryr-libnetwork-dsvm-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml index eb70f37b..a9d19e81 100644 --- a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml @@ -3,6 +3,11 @@ old job gate-kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml index c132e6fb..14e667a4 100644 --- a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml @@ -3,6 +3,11 @@ job gate-kuryr-libnetwork-kuryr_lib-src-dsvm-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml b/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml index 778b2aa3..7e1a1d16 100644 --- a/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml +++ b/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-labs-ig-cluster-kvm-ubuntu from old job gate-labs-ig-cluster-kvm-ubuntu-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,12 +33,15 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: ./tools/cluster kvm ubuntu + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml b/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml index eae4fdde..a4ab4767 100644 --- a/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml +++ b/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-labs-ig-cluster-vbox-ubuntu from old job gate-labs-ig-cluster-vbox-ubuntu-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,12 +33,15 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: ./tools/cluster vbox ubuntu + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-release-branch/post.yaml b/playbooks/legacy/laravel-openstackid-release-branch/post.yaml index 69b42bb9..c4c32425 100644 --- a/playbooks/legacy/laravel-openstackid-release-branch/post.yaml +++ b/playbooks/legacy/laravel-openstackid-release-branch/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/laravel-openstackid-release-branch/run.yaml b/playbooks/legacy/laravel-openstackid-release-branch/run.yaml index d936c589..350262a6 100644 --- a/playbooks/legacy/laravel-openstackid-release-branch/run.yaml +++ b/playbooks/legacy/laravel-openstackid-release-branch/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-laravel-openstackid-release-branch from old job laravel-openstackid-release-branch tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ set -x sudo php5enmod mcrypt executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +57,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +66,7 @@ set -x /usr/local/jenkins/slave_scripts/version-properties.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +87,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-release-master/post.yaml b/playbooks/legacy/laravel-openstackid-release-master/post.yaml index 69b42bb9..c4c32425 100644 --- a/playbooks/legacy/laravel-openstackid-release-master/post.yaml +++ b/playbooks/legacy/laravel-openstackid-release-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/laravel-openstackid-release-master/run.yaml b/playbooks/legacy/laravel-openstackid-release-master/run.yaml index d80ca4ed..f0f06baf 100644 --- a/playbooks/legacy/laravel-openstackid-release-master/run.yaml +++ b/playbooks/legacy/laravel-openstackid-release-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-laravel-openstackid-release-master from old job laravel-openstackid-release-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ set -x sudo php5enmod mcrypt executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +57,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +66,7 @@ set -x /usr/local/jenkins/slave_scripts/version-properties.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +87,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-unittests/post.yaml b/playbooks/legacy/laravel-openstackid-unittests/post.yaml index 5850ab1d..825c345d 100644 --- a/playbooks/legacy/laravel-openstackid-unittests/post.yaml +++ b/playbooks/legacy/laravel-openstackid-unittests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/laravel-openstackid-unittests/run.yaml b/playbooks/legacy/laravel-openstackid-unittests/run.yaml index 1996a704..5cbad329 100644 --- a/playbooks/legacy/laravel-openstackid-unittests/run.yaml +++ b/playbooks/legacy/laravel-openstackid-unittests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-laravel-openstackid-unittests from old job gate-laravel-openstackid-unittests tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +47,7 @@ set -x sudo php5enmod mcrypt executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +57,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +66,5 @@ set -x /usr/local/jenkins/slave_scripts/php-laravel-build.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml b/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml index e025c51c..a7e122bf 100644 --- a/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml +++ b/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-libec-pyeclib-unit-centos-7 from old job gate-libec-pyeclib-unit-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -24,4 +29,5 @@ cd $WORKSPACE/openstack/pyeclib tox -e py27 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/libec-pyeclib-unit/run.yaml b/playbooks/legacy/libec-pyeclib-unit/run.yaml index 9ca1793a..f9081849 100644 --- a/playbooks/legacy/libec-pyeclib-unit/run.yaml +++ b/playbooks/legacy/libec-pyeclib-unit/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-libec-pyeclib-unit from old job gate-libec-pyeclib-unit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -24,4 +29,5 @@ cd $WORKSPACE/openstack/pyeclib tox -e py27 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml b/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml index d78bc434..20240d1d 100644 --- a/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml +++ b/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-liberasurecode-unit-centos-7 from old job gate-liberasurecode-unit-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ make test make valgrind-test executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/liberasurecode-unit/run.yaml b/playbooks/legacy/liberasurecode-unit/run.yaml index ba29e377..103669a7 100644 --- a/playbooks/legacy/liberasurecode-unit/run.yaml +++ b/playbooks/legacy/liberasurecode-unit/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-liberasurecode-unit from old job gate-liberasurecode-unit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ make test make valgrind-test executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/loci/post.yaml b/playbooks/legacy/loci/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/loci/post.yaml +++ b/playbooks/legacy/loci/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/loci/run.yaml b/playbooks/legacy/loci/run.yaml index eea6ddaa..52fc47e1 100644 --- a/playbooks/legacy/loci/run.yaml +++ b/playbooks/legacy/loci/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-loci from old job gate-{name}-loci-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack/loci executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ openstack/loci/scripts/gate-setup.sh openstack/loci/scripts/run-tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml b/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml b/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml index bb958c25..3bab465a 100644 --- a/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-logstash-filters-ubuntu-trusty from old job gate-logstash-filters-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,4 +24,5 @@ cd openstack-infra/system-config ./tools/logstash-filter-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/logstash-filters/post.yaml b/playbooks/legacy/logstash-filters/post.yaml index 658c6f8c..cf7a3f75 100644 --- a/playbooks/legacy/logstash-filters/post.yaml +++ b/playbooks/legacy/logstash-filters/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/logstash-filters/run.yaml b/playbooks/legacy/logstash-filters/run.yaml index 7e6dbdba..e92ebc69 100644 --- a/playbooks/legacy/logstash-filters/run.yaml +++ b/playbooks/legacy/logstash-filters/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-logstash-filters from old job gate-logstash-filters-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -9,6 +14,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/system-config executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,4 +24,5 @@ cd openstack-infra/system-config ./tools/logstash-filter-test.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/magnum-tox-migration/post.yaml b/playbooks/legacy/magnum-tox-migration/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/magnum-tox-migration/post.yaml +++ b/playbooks/legacy/magnum-tox-migration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/magnum-tox-migration/run.yaml b/playbooks/legacy/magnum-tox-migration/run.yaml index bdfcf02d..ca16b017 100644 --- a/playbooks/legacy/magnum-tox-migration/run.yaml +++ b/playbooks/legacy/magnum-tox-migration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-magnum-tox-migration from old job gate-magnum-tox-migration-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh migration + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-buildimage-docker/run.yaml b/playbooks/legacy/manila-buildimage-docker/run.yaml index 129b69ab..966c4c97 100644 --- a/playbooks/legacy/manila-buildimage-docker/run.yaml +++ b/playbooks/legacy/manila-buildimage-docker/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-buildimage-docker from old job gate-manila-buildimage-docker-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +47,5 @@ set -x ./tools/gate/build-images docker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-buildimage-generic/run.yaml b/playbooks/legacy/manila-buildimage-generic/run.yaml index f24632d1..00828cd3 100644 --- a/playbooks/legacy/manila-buildimage-generic/run.yaml +++ b/playbooks/legacy/manila-buildimage-generic/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-buildimage-generic from old job gate-manila-buildimage-generic-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +47,5 @@ set -x ./tools/gate/build-images generic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-publishimage-generic/post.yaml b/playbooks/legacy/manila-publishimage-generic/post.yaml index 4efee37b..d86169ac 100644 --- a/playbooks/legacy/manila-publishimage-generic/post.yaml +++ b/playbooks/legacy/manila-publishimage-generic/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-publishimage-generic/run.yaml b/playbooks/legacy/manila-publishimage-generic/run.yaml index 80d00153..e060c0a5 100644 --- a/playbooks/legacy/manila-publishimage-generic/run.yaml +++ b/playbooks/legacy/manila-publishimage-generic/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-publishimage-generic from old job gate-manila-publishimage-generic-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ mkdir -p images mv manila-service-image.qcow2 images/manila-service-image-$BRANCH_PATH.qcow2 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-pylint/post.yaml b/playbooks/legacy/manila-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/manila-pylint/post.yaml +++ b/playbooks/legacy/manila-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-pylint/run.yaml b/playbooks/legacy/manila-pylint/run.yaml index b37c29c5..19ae6f90 100644 --- a/playbooks/legacy/manila-pylint/run.yaml +++ b/playbooks/legacy/manila-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-pylint from old job gate-manila-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml index 8470245c..7d5d7978 100644 --- a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-dsvm-container-scenario-custom-image-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml index 946ebe25..28ec9045 100644 --- a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml @@ -3,6 +3,11 @@ old job gate-manila-tempest-dsvm-generic-no-share-servers-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml index 6848274c..daa49cee 100644 --- a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-dsvm-generic-scenario-custom-image-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml index 318d50dc..b905cf9b 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml @@ -3,6 +3,11 @@ old job gate-manila-tempest-dsvm-glusterfs-native-heketi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml index 03a6adf6..87d004ec 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml @@ -3,6 +3,11 @@ gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml index 0952bec9..09e269c2 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml @@ -3,6 +3,11 @@ job gate-manila-tempest-dsvm-glusterfs-nfs-heketi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml index 89e34ff4..fc39c868 100644 --- a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-nfs from old job gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +41,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml index 2c7e9d31..20524053 100644 --- a/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tempest-dsvm-hdfs from old job gate-manila-tempest-dsvm-hdfs-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml index 932d02ec..83de354d 100644 --- a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tempest-dsvm-mysql-generic from old job gate-manila-tempest-dsvm-mysql-generic-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -96,4 +103,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml index 9756ea98..eba61e68 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml @@ -3,6 +3,11 @@ gate-manila-tempest-dsvm-postgres-container-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml index c350b982..9310e03f 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-dsvm-postgres-generic-singlebackend-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml index bcf2a221..c9f6c12e 100644 --- a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml @@ -3,6 +3,11 @@ job gate-manila-tempest-dsvm-postgres-zfsonlinux-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -97,4 +104,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml index c2c0534e..a54560e2 100644 --- a/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -96,4 +103,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml index 6605951a..d9d6fb46 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-minimal-dsvm-cephfs-native-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +54,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -83,4 +90,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml index f80ecc43..18b59583 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +54,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -83,4 +90,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml index 4f31827b..1e7ea355 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -83,4 +90,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml index 60589d44..280c05b7 100644 --- a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-manila-tempest-minimal-dsvm-lvm-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +91,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml index 3da8d0a5..b399798c 100644 --- a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,6 +61,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -90,4 +97,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml index 2a47a002..4fadac05 100644 --- a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,6 +61,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -90,4 +97,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-test-image-build/run.yaml b/playbooks/legacy/manila-test-image-build/run.yaml index ce2b9722..58886926 100644 --- a/playbooks/legacy/manila-test-image-build/run.yaml +++ b/playbooks/legacy/manila-test-image-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-test-image-build from old job gate-manila-test-image-build tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +47,5 @@ set -x ./run-buildroot.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tox-genconfig/post.yaml b/playbooks/legacy/manila-tox-genconfig/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/manila-tox-genconfig/post.yaml +++ b/playbooks/legacy/manila-tox-genconfig/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-tox-genconfig/run.yaml b/playbooks/legacy/manila-tox-genconfig/run.yaml index fddcad66..a4059635 100644 --- a/playbooks/legacy/manila-tox-genconfig/run.yaml +++ b/playbooks/legacy/manila-tox-genconfig/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-tox-genconfig from old job gate-manila-tox-genconfig-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh genconfig + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-dsvm/post.yaml b/playbooks/legacy/manila-ui-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/manila-ui-dsvm/post.yaml +++ b/playbooks/legacy/manila-ui-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-ui-dsvm/run.yaml b/playbooks/legacy/manila-ui-dsvm/run.yaml index 4fb9aaa4..6cb59c47 100644 --- a/playbooks/legacy/manila-ui-dsvm/run.yaml +++ b/playbooks/legacy/manila-ui-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-ui-dsvm from old job gate-manila-ui-dsvm-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,18 +34,21 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml b/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml +++ b/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml b/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml index 8c86de58..3fb1ccd8 100644 --- a/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml +++ b/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-ui-tox-py27dj110 from old job gate-manila-ui-tox-py27dj110-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml b/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml +++ b/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml b/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml index 865b5b20..5afb3e5c 100644 --- a/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml +++ b/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-manila-ui-tox-py27dj19 from old job gate-manila-ui-tox-py27dj19-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml b/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml +++ b/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml b/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml index c42d73a1..41a058d0 100644 --- a/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml +++ b/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml @@ -3,6 +3,11 @@ gate-manilaclient-dsvm-neutron-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/merlin-js-release-branch/post.yaml b/playbooks/legacy/merlin-js-release-branch/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/merlin-js-release-branch/post.yaml +++ b/playbooks/legacy/merlin-js-release-branch/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/merlin-js-release-branch/run.yaml b/playbooks/legacy/merlin-js-release-branch/run.yaml index 44b82830..909abf51 100644 --- a/playbooks/legacy/merlin-js-release-branch/run.yaml +++ b/playbooks/legacy/merlin-js-release-branch/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-merlin-js-release-branch from old job merlin-js-release-branch tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +99,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/merlin-js-release-master/post.yaml b/playbooks/legacy/merlin-js-release-master/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/merlin-js-release-master/post.yaml +++ b/playbooks/legacy/merlin-js-release-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/merlin-js-release-master/run.yaml b/playbooks/legacy/merlin-js-release-master/run.yaml index 9339ecef..4478d669 100644 --- a/playbooks/legacy/merlin-js-release-master/run.yaml +++ b/playbooks/legacy/merlin-js-release-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-merlin-js-release-master from old job merlin-js-release-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +99,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml b/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml b/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml index 1a6cd539..0b84d965 100644 --- a/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-devstack-dsvm-kombu from old job gate-mistral-devstack-dsvm-kombu-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml b/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml b/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml index 3a0b3cc0..63de8bb5 100644 --- a/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-devstack-dsvm-non-apache from old job gate-mistral-devstack-dsvm-non-apache-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm/post.yaml b/playbooks/legacy/mistral-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/mistral-devstack-dsvm/post.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-devstack-dsvm/run.yaml b/playbooks/legacy/mistral-devstack-dsvm/run.yaml index 83910541..2508aef2 100644 --- a/playbooks/legacy/mistral-devstack-dsvm/run.yaml +++ b/playbooks/legacy/mistral-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-devstack-dsvm from old job gate-mistral-devstack-dsvm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-docker-buildimage/post.yaml b/playbooks/legacy/mistral-docker-buildimage/post.yaml index 50b1751c..553ce578 100644 --- a/playbooks/legacy/mistral-docker-buildimage/post.yaml +++ b/playbooks/legacy/mistral-docker-buildimage/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-docker-buildimage/run.yaml b/playbooks/legacy/mistral-docker-buildimage/run.yaml index 6f7c7ff4..c3603f75 100644 --- a/playbooks/legacy/mistral-docker-buildimage/run.yaml +++ b/playbooks/legacy/mistral-docker-buildimage/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-docker-buildimage from old job gate-mistral-docker-buildimage tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,13 +33,16 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | ./docker_image_build.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-ha/run.yaml b/playbooks/legacy/mistral-ha/run.yaml index 0b16d63d..dd95a56b 100644 --- a/playbooks/legacy/mistral-ha/run.yaml +++ b/playbooks/legacy/mistral-ha/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-ha from old job gate-mistral-ha-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ # file. ha_gate/install.sh ha_gate/run_tests.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-tox-unit-mysql/post.yaml b/playbooks/legacy/mistral-tox-unit-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/mistral-tox-unit-mysql/post.yaml +++ b/playbooks/legacy/mistral-tox-unit-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-tox-unit-mysql/run.yaml b/playbooks/legacy/mistral-tox-unit-mysql/run.yaml index 39bc80ad..43502c73 100644 --- a/playbooks/legacy/mistral-tox-unit-mysql/run.yaml +++ b/playbooks/legacy/mistral-tox-unit-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-tox-unit-mysql from old job gate-mistral-tox-unit-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh unit-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml b/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml +++ b/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml b/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml index e5002a5e..09f07cd2 100644 --- a/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml +++ b/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mistral-tox-unit-postgresql from old job gate-mistral-tox-unit-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh unit-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mixmatch-dsvm-functional/post.yaml b/playbooks/legacy/mixmatch-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/mixmatch-dsvm-functional/post.yaml +++ b/playbooks/legacy/mixmatch-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/mixmatch-dsvm-functional/run.yaml b/playbooks/legacy/mixmatch-dsvm-functional/run.yaml index 45023d9e..0a4c07db 100644 --- a/playbooks/legacy/mixmatch-dsvm-functional/run.yaml +++ b/playbooks/legacy/mixmatch-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mixmatch-dsvm-functional from old job gate-mixmatch-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml b/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml +++ b/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml b/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml index 2273f30e..0895cf65 100644 --- a/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml +++ b/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mogan-dsvm-tempest-plugin from old job gate-mogan-dsvm-tempest-plugin tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mogan-tox-functional/post.yaml b/playbooks/legacy/mogan-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/mogan-tox-functional/post.yaml +++ b/playbooks/legacy/mogan-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/mogan-tox-functional/run.yaml b/playbooks/legacy/mogan-tox-functional/run.yaml index 2d23af18..e19f761c 100644 --- a/playbooks/legacy/mogan-tox-functional/run.yaml +++ b/playbooks/legacy/mogan-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-mogan-tox-functional from old job gate-mogan-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-api-localrepo-upload/post.yaml b/playbooks/legacy/monasca-api-localrepo-upload/post.yaml index a0926cd8..339e9a50 100644 --- a/playbooks/legacy/monasca-api-localrepo-upload/post.yaml +++ b/playbooks/legacy/monasca-api-localrepo-upload/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/monasca-api-localrepo-upload/run.yaml b/playbooks/legacy/monasca-api-localrepo-upload/run.yaml index 05b5435f..aa6a4be4 100644 --- a/playbooks/legacy/monasca-api-localrepo-upload/run.yaml +++ b/playbooks/legacy/monasca-api-localrepo-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-api-localrepo-upload from old job monasca-api-localrepo-upload-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-api-maven-build/run.yaml b/playbooks/legacy/monasca-api-maven-build/run.yaml index 73e0c3b7..35b875e1 100644 --- a/playbooks/legacy/monasca-api-maven-build/run.yaml +++ b/playbooks/legacy/monasca-api-maven-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-api-maven-build from old job gate-monasca-api-maven-build-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-common-localrepo-upload/post.yaml b/playbooks/legacy/monasca-common-localrepo-upload/post.yaml index a0926cd8..339e9a50 100644 --- a/playbooks/legacy/monasca-common-localrepo-upload/post.yaml +++ b/playbooks/legacy/monasca-common-localrepo-upload/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/monasca-common-localrepo-upload/run.yaml b/playbooks/legacy/monasca-common-localrepo-upload/run.yaml index 54280155..4ab28c6b 100644 --- a/playbooks/legacy/monasca-common-localrepo-upload/run.yaml +++ b/playbooks/legacy/monasca-common-localrepo-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-common-localrepo-upload from old job monasca-common-localrepo-upload-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-common-maven-build/run.yaml b/playbooks/legacy/monasca-common-maven-build/run.yaml index f88e0776..69c9ded2 100644 --- a/playbooks/legacy/monasca-common-maven-build/run.yaml +++ b/playbooks/legacy/monasca-common-maven-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-common-maven-build from old job gate-monasca-common-maven-build-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml b/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml index a0926cd8..339e9a50 100644 --- a/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml +++ b/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml b/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml index 0e66749e..206454e2 100644 --- a/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml +++ b/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-persister-localrepo-upload from old job monasca-persister-localrepo-upload-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-persister-maven-build/run.yaml b/playbooks/legacy/monasca-persister-maven-build/run.yaml index e81a2023..32c38b47 100644 --- a/playbooks/legacy/monasca-persister-maven-build/run.yaml +++ b/playbooks/legacy/monasca-persister-maven-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-persister-maven-build from old job gate-monasca-persister-maven-build-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml b/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml index a0926cd8..339e9a50 100644 --- a/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml +++ b/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml b/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml index 98304128..dda6ba00 100644 --- a/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml +++ b/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-thresh-localrepo-upload from old job monasca-thresh-localrepo-upload-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-thresh-maven-build/run.yaml b/playbooks/legacy/monasca-thresh-maven-build/run.yaml index 1e3914ce..4f50b94d 100644 --- a/playbooks/legacy/monasca-thresh-maven-build/run.yaml +++ b/playbooks/legacy/monasca-thresh-maven-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monasca-thresh-maven-build from old job gate-monasca-thresh-maven-build-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monitorstack-releasenotes/run.yaml b/playbooks/legacy/monitorstack-releasenotes/run.yaml index 86c4ff5d..5bd8e392 100644 --- a/playbooks/legacy/monitorstack-releasenotes/run.yaml +++ b/playbooks/legacy/monitorstack-releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-monitorstack-releasenotes from old job gate-monitorstack-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml b/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml +++ b/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml b/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml index 49815391..a0f05d73 100644 --- a/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml +++ b/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-murano-congress-devstack-dsvm from old job gate-murano-congress-devstack-dsvm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +80,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-dsvm-functional/post.yaml b/playbooks/legacy/murano-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/murano-dsvm-functional/post.yaml +++ b/playbooks/legacy/murano-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/murano-dsvm-functional/run.yaml b/playbooks/legacy/murano-dsvm-functional/run.yaml index bb18ae43..fcd00e25 100644 --- a/playbooks/legacy/murano-dsvm-functional/run.yaml +++ b/playbooks/legacy/murano-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-murano-dsvm-functional from old job gate-murano-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-firstapp-docs/post.yaml b/playbooks/legacy/murano-firstapp-docs/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/murano-firstapp-docs/post.yaml +++ b/playbooks/legacy/murano-firstapp-docs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/murano-firstapp-docs/run.yaml b/playbooks/legacy/murano-firstapp-docs/run.yaml index 8933c49b..b7680bee 100644 --- a/playbooks/legacy/murano-firstapp-docs/run.yaml +++ b/playbooks/legacy/murano-firstapp-docs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-murano-firstapp-docs from old job murano-firstapp-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh murano-firstapp + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +69,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > doc/build/murano-firstapp/html/.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml +++ b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml index 8d0c2f88..6e0934ee 100644 --- a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml +++ b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml @@ -3,6 +3,11 @@ job gate-muranoclient-dsvm-functional-mysql-backend-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml index 695afb3d..3778990d 100644 --- a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-bagpipe-dsvm-fullstack from old job gate-networking-bagpipe-dsvm-fullstack-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml index 8e9181a1..c5259b52 100644 --- a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml @@ -3,6 +3,11 @@ job gate-networking-bgpvpn-bagpipe-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml index 0f768876..e65b71f8 100644 --- a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml @@ -3,6 +3,11 @@ gate-networking-bgpvpn-bagpipe-dsvm-install-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml +++ b/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml index 7cb9d0e1..6e1756b3 100644 --- a/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml +++ b/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-bgpvpn-dsvm-functional from old job gate-networking-bgpvpn-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml +++ b/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml index 37ef129d..6a17fa3a 100644 --- a/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml +++ b/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-bgpvpn-dsvm-install from old job gate-networking-bgpvpn-dsvm-install-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-master/post.yaml b/playbooks/legacy/networking-cisco-tox-master/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/networking-cisco-tox-master/post.yaml +++ b/playbooks/legacy/networking-cisco-tox-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-cisco-tox-master/run.yaml b/playbooks/legacy/networking-cisco-tox-master/run.yaml index 01da2df8..35a319da 100644 --- a/playbooks/legacy/networking-cisco-tox-master/run.yaml +++ b/playbooks/legacy/networking-cisco-tox-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-cisco-tox-master from old job gate-networking-cisco-tox-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh master + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-newton/post.yaml b/playbooks/legacy/networking-cisco-tox-newton/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/networking-cisco-tox-newton/post.yaml +++ b/playbooks/legacy/networking-cisco-tox-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-cisco-tox-newton/run.yaml b/playbooks/legacy/networking-cisco-tox-newton/run.yaml index 9c1ea165..21c53928 100644 --- a/playbooks/legacy/networking-cisco-tox-newton/run.yaml +++ b/playbooks/legacy/networking-cisco-tox-newton/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-cisco-tox-newton from old job gate-networking-cisco-tox-newton-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh newton + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-ocata/post.yaml b/playbooks/legacy/networking-cisco-tox-ocata/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/networking-cisco-tox-ocata/post.yaml +++ b/playbooks/legacy/networking-cisco-tox-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-cisco-tox-ocata/run.yaml b/playbooks/legacy/networking-cisco-tox-ocata/run.yaml index fc3e98b0..1a82c26a 100644 --- a/playbooks/legacy/networking-cisco-tox-ocata/run.yaml +++ b/playbooks/legacy/networking-cisco-tox-ocata/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-cisco-tox-ocata from old job gate-networking-cisco-tox-ocata-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ocata + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-pike/post.yaml b/playbooks/legacy/networking-cisco-tox-pike/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/networking-cisco-tox-pike/post.yaml +++ b/playbooks/legacy/networking-cisco-tox-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-cisco-tox-pike/run.yaml b/playbooks/legacy/networking-cisco-tox-pike/run.yaml index 5e2f8e59..17185b08 100644 --- a/playbooks/legacy/networking-cisco-tox-pike/run.yaml +++ b/playbooks/legacy/networking-cisco-tox-pike/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-cisco-tox-pike from old job gate-networking-cisco-tox-pike-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh pike + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml b/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml +++ b/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml b/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml index 66ef73c7..636c80b5 100644 --- a/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml +++ b/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml @@ -3,6 +3,11 @@ gate-networking-generic-switch-dsvm-tempest tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml b/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml +++ b/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml b/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml index 74fad0b3..abe726d2 100644 --- a/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml +++ b/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-l2gw-dsvm-functional from old job gate-networking-l2gw-dsvm-functional-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml +++ b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml index f099151d..ee7ef13c 100644 --- a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml +++ b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml @@ -3,6 +3,11 @@ old job gate-networking-l2gw-dsvm-tempest-api-dummy-driver-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml +++ b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml index ccc21245..d5561b2d 100644 --- a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml +++ b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-midonet-rally-dsvm-ml2 from old job gate-networking-midonet-rally-dsvm-ml2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml +++ b/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml index 3ed745db..7cc51c19 100644 --- a/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml +++ b/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-midonet-rally-dsvm-v2 from old job gate-networking-midonet-rally-dsvm-v2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml b/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml +++ b/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml b/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml index 1af00187..14ece1e4 100644 --- a/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml +++ b/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml @@ -3,6 +3,11 @@ gate-networking-ovn-dsvm-functional-py35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml b/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml +++ b/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml b/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml index dafca35a..aea3e483 100644 --- a/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml +++ b/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-ovn-dsvm-functional from old job gate-networking-ovn-dsvm-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml b/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml +++ b/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml b/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml index dcaee233..3f9f6030 100644 --- a/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml +++ b/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-sfc-functional-dsvm from old job gate-networking-sfc-functional-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-vpp-smoke/post.yaml b/playbooks/legacy/networking-vpp-smoke/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/networking-vpp-smoke/post.yaml +++ b/playbooks/legacy/networking-vpp-smoke/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/networking-vpp-smoke/run.yaml b/playbooks/legacy/networking-vpp-smoke/run.yaml index b81b29e6..6015671c 100644 --- a/playbooks/legacy/networking-vpp-smoke/run.yaml +++ b/playbooks/legacy/networking-vpp-smoke/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-networking-vpp-smoke from old job gate-networking-vpp-smoke-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +51,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml b/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml +++ b/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml b/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml index be5936a5..43820f03 100644 --- a/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml +++ b/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-dsvm-api-pecan from old job gate-neutron-dsvm-api-pecan-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-api/post.yaml b/playbooks/legacy/neutron-dsvm-api/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dsvm-api/post.yaml +++ b/playbooks/legacy/neutron-dsvm-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dsvm-api/run.yaml b/playbooks/legacy/neutron-dsvm-api/run.yaml index a46e258e..0899cfcd 100644 --- a/playbooks/legacy/neutron-dsvm-api/run.yaml +++ b/playbooks/legacy/neutron-dsvm-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-dsvm-api from old job gate-neutron-dsvm-api-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-fullstack/post.yaml b/playbooks/legacy/neutron-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/neutron-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dsvm-fullstack/run.yaml b/playbooks/legacy/neutron-dsvm-fullstack/run.yaml index 97b49267..be9c30fd 100644 --- a/playbooks/legacy/neutron-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/neutron-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-dsvm-fullstack from old job gate-neutron-dsvm-fullstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-functional/post.yaml b/playbooks/legacy/neutron-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dsvm-functional/post.yaml +++ b/playbooks/legacy/neutron-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dsvm-functional/run.yaml b/playbooks/legacy/neutron-dsvm-functional/run.yaml index 63585263..1ebd4ca9 100644 --- a/playbooks/legacy/neutron-dsvm-functional/run.yaml +++ b/playbooks/legacy/neutron-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-dsvm-functional from old job gate-neutron-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml +++ b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml index 153f0131..d164744d 100644 --- a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml +++ b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-dsvm-tempest-vpnaas from old job gate-neutron-dsvm-tempest-vpnaas-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml index e9209595..b92ad22e 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-dynamic-routing-dsvm-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml index a4b0bb91..69f0af1e 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-dynamic-routing-dsvm-tempest-api tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml index 84063b23..1eb05f82 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml @@ -3,6 +3,11 @@ from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-basic-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml index 517cdba4..c045fb63 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml @@ -3,6 +3,11 @@ from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-ipv4-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml index e64c41e9..1a5dda8f 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml @@ -3,6 +3,11 @@ from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-ipv6-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml index 5b1e0aaf..5d10148b 100644 --- a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml @@ -3,6 +3,11 @@ from old job gate-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml +++ b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml index e0fc1b89..f3f51521 100644 --- a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml +++ b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-fwaas-dsvm-fullstack from old job gate-neutron-fwaas-dsvm-fullstack-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml b/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml +++ b/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml b/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml index 42da0662..fa430989 100644 --- a/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml +++ b/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-fwaas-dsvm-functional from old job gate-neutron-fwaas-dsvm-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml index 3f8cb6ae..05c78b9c 100644 --- a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-fwaas-v1-dsvm-tempest-multinode-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml index c8ea48d9..0876e720 100644 --- a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-fwaas-v1-dsvm-tempest from old job gate-neutron-fwaas-v1-dsvm-tempest tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml index f11796aa..8a89f299 100644 --- a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-fwaas-v2-dsvm-tempest-multinode-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml index 992705f9..f90af03c 100644 --- a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-fwaas-v2-dsvm-tempest from old job gate-neutron-fwaas-v2-dsvm-tempest tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml index 9cf42f81..4e974deb 100644 --- a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ old job gate-neutron-lbaas-dashboard-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml index 50e07e2b..020d6ad0 100644 --- a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ old job gate-neutron-lbaas-dashboard-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml index c73386d6..c4922535 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-api-namespace from old job gate-neutron-lbaasv2-dsvm-api-namespace-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml index 2a8ba48c..b742982d 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-api from old job gate-neutron-lbaasv2-dsvm-api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml index 5b9d7f91..c6c6a058 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-healthmonitor from old job gate-neutron-lbaasv2-dsvm-healthmonitor-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml index e0c21055..053de817 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-listener from old job gate-neutron-lbaasv2-dsvm-listener-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml index 8483dc6b..00f0f7c6 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-loadbalancer from old job gate-neutron-lbaasv2-dsvm-loadbalancer-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml index 1b88ed89..001c1e30 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-member from old job gate-neutron-lbaasv2-dsvm-member-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml index 45a2de3c..b709bf0b 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-minimal from old job gate-neutron-lbaasv2-dsvm-minimal-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml index 98a25c7b..eb9979dc 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-pool from old job gate-neutron-lbaasv2-dsvm-pool-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml index 6ef777cf..9a2fa968 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-lbaasv2-dsvm-py3x-api-namespace-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml index 2e9ef9e1..97726b09 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-api from old job gate-neutron-lbaasv2-dsvm-py3x-api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml index 741708ef..8d715e5e 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml @@ -3,6 +3,11 @@ old job gate-neutron-lbaasv2-dsvm-py3x-scenario-namespace-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml index cac61053..d3e661a5 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-scenario from old job gate-neutron-lbaasv2-dsvm-py3x-scenario-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml index 8c0722b5..20887275 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml @@ -3,6 +3,11 @@ job gate-neutron-lbaasv2-dsvm-scenario-namespace-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml index db0b7645..35064e20 100644 --- a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-lbaasv2-dsvm-scenario from old job gate-neutron-lbaasv2-dsvm-scenario-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml index ba954f86..90c7b943 100644 --- a/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml +++ b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml @@ -3,6 +3,11 @@ gate-neutron-vpnaas-dashboard-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -190,4 +198,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml +++ b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml index 2064911b..bc24ee2d 100644 --- a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml +++ b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml @@ -3,6 +3,11 @@ gate-neutron-vpnaas-dsvm-functional-sswan-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml +++ b/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml index 3ecb432d..13af0025 100644 --- a/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml +++ b/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-vpnaas-dsvm-rally from old job gate-neutron-vpnaas-dsvm-rally-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml b/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml index 9b5fc6d7..edcfe471 100644 --- a/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml +++ b/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutron-vpnaas-releasenotes from old job gate-neutron-vpnaas-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml +++ b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml index 0179f48f..1743b701 100644 --- a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml +++ b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml @@ -3,6 +3,11 @@ old job gate-neutronclient-test-dsvm-functional-adv-svcs-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml +++ b/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml index b1683fd0..4812b68b 100644 --- a/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml +++ b/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-neutronclient-test-dsvm-functional from old job gate-neutronclient-test-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/nodejs4-npm-run-lint/run.yaml index edd03d04..67da43c8 100644 --- a/playbooks/legacy/nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/nodejs4-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nodejs4-npm-run-lint from old job gate-{name}-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs4-npm-run-test/post.yaml b/playbooks/legacy/nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/nodejs4-npm-run-test/run.yaml b/playbooks/legacy/nodejs4-npm-run-test/run.yaml index 4951e35d..0da8f5b0 100644 --- a/playbooks/legacy/nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/nodejs4-npm-run-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nodejs4-npm-run-test from old job gate-{name}-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs6-npm-run-lint/post.yaml b/playbooks/legacy/nodejs6-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/nodejs6-npm-run-lint/post.yaml +++ b/playbooks/legacy/nodejs6-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/nodejs6-npm-run-lint/run.yaml b/playbooks/legacy/nodejs6-npm-run-lint/run.yaml index 54bf5726..967e9660 100644 --- a/playbooks/legacy/nodejs6-npm-run-lint/run.yaml +++ b/playbooks/legacy/nodejs6-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nodejs6-npm-run-lint from old job gate-{name}-nodejs6-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs6-npm-run-test/post.yaml b/playbooks/legacy/nodejs6-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/nodejs6-npm-run-test/post.yaml +++ b/playbooks/legacy/nodejs6-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/nodejs6-npm-run-test/run.yaml b/playbooks/legacy/nodejs6-npm-run-test/run.yaml index c1736607..4208b524 100644 --- a/playbooks/legacy/nodejs6-npm-run-test/run.yaml +++ b/playbooks/legacy/nodejs6-npm-run-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nodejs6-npm-run-test from old job gate-{name}-nodejs6-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-api-ref-src/post.yaml b/playbooks/legacy/nova-api-ref-src/post.yaml index 75275036..e7ab1197 100644 --- a/playbooks/legacy/nova-api-ref-src/post.yaml +++ b/playbooks/legacy/nova-api-ref-src/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -22,9 +22,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -35,9 +35,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -48,9 +48,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -61,9 +61,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/nova-api-ref-src/run.yaml b/playbooks/legacy/nova-api-ref-src/run.yaml index a31d35dd..c8aff203 100644 --- a/playbooks/legacy/nova-api-ref-src/run.yaml +++ b/playbooks/legacy/nova-api-ref-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nova-api-ref-src from old job gate-nova-api-ref-src tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -30,10 +35,12 @@ git://git.openstack.org 'openstack/$ZUUL_SHORT_PROJECT_NAME' openstack/os-api-ref openstack/requirements cp $REQS_DIR/upper-constraints.txt ./ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,8 +50,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox-api-ref.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml b/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml +++ b/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml b/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml index d1baba90..20387fa2 100644 --- a/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml +++ b/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nova-dpm-tox-functional-py35 from old job gate-nova-dpm-tox-functional-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-dpm-tox-functional/post.yaml b/playbooks/legacy/nova-dpm-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/nova-dpm-tox-functional/post.yaml +++ b/playbooks/legacy/nova-dpm-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/nova-dpm-tox-functional/run.yaml b/playbooks/legacy/nova-dpm-tox-functional/run.yaml index c68652e6..756e3bc7 100644 --- a/playbooks/legacy/nova-dpm-tox-functional/run.yaml +++ b/playbooks/legacy/nova-dpm-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nova-dpm-tox-functional from old job gate-nova-dpm-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-tox-functional-py35/post.yaml b/playbooks/legacy/nova-tox-functional-py35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/nova-tox-functional-py35/post.yaml +++ b/playbooks/legacy/nova-tox-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/nova-tox-functional-py35/run.yaml b/playbooks/legacy/nova-tox-functional-py35/run.yaml index dfdbd854..f6d6669c 100644 --- a/playbooks/legacy/nova-tox-functional-py35/run.yaml +++ b/playbooks/legacy/nova-tox-functional-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nova-tox-functional-py35 from old job gate-nova-tox-functional-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-tox-functional/post.yaml b/playbooks/legacy/nova-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/nova-tox-functional/post.yaml +++ b/playbooks/legacy/nova-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/nova-tox-functional/run.yaml b/playbooks/legacy/nova-tox-functional/run.yaml index d83b9115..cf35c1ce 100644 --- a/playbooks/legacy/nova-tox-functional/run.yaml +++ b/playbooks/legacy/nova-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-nova-tox-functional from old job gate-nova-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml index ba6bd41c..ca45b736 100644 --- a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ old job gate-novaclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml b/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml b/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml index 7e3f60bb..fb13df18 100644 --- a/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-novaclient-dsvm-functional-neutron from old job gate-novaclient-dsvm-functional-neutron-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional/post.yaml b/playbooks/legacy/novaclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/novaclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/novaclient-dsvm-functional/run.yaml b/playbooks/legacy/novaclient-dsvm-functional/run.yaml index 790dfb60..166cd33e 100644 --- a/playbooks/legacy/novaclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/novaclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-novaclient-dsvm-functional from old job gate-novaclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/npm-upload/run.yaml b/playbooks/legacy/npm-upload/run.yaml index 3455d0bc..6e9f6cdc 100644 --- a/playbooks/legacy/npm-upload/run.yaml +++ b/playbooks/legacy/npm-upload/run.yaml @@ -2,7 +2,13 @@ name: Autoconverted job legacy-npm-upload from old job {name}-npm-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/local/jenkins/slave_scripts/npm-tarball-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oaktree-dsvm-functional/post.yaml b/playbooks/legacy/oaktree-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oaktree-dsvm-functional/post.yaml +++ b/playbooks/legacy/oaktree-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oaktree-dsvm-functional/run.yaml b/playbooks/legacy/oaktree-dsvm-functional/run.yaml index 1f37ee98..ecdca4dc 100644 --- a/playbooks/legacy/oaktree-dsvm-functional/run.yaml +++ b/playbooks/legacy/oaktree-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oaktree-dsvm-functional from old job gate-oaktree-dsvm-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oaktreemodel-distcheck/run.yaml b/playbooks/legacy/oaktreemodel-distcheck/run.yaml index 5c22bda2..7eced5e6 100644 --- a/playbooks/legacy/oaktreemodel-distcheck/run.yaml +++ b/playbooks/legacy/oaktreemodel-distcheck/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oaktreemodel-distcheck from old job oaktreemodel-distcheck tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ export GOPATH=$HOME/go export PATH=$GOPATH/bin:$PATH ./install_proto3.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,6 +63,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +80,5 @@ git diff --stat --exit-code HEAD make distcheck executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml index bd2c7ac2..d63a6084 100644 --- a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ gate-octavia-dashboard-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml index ea1add90..1444d2a7 100644 --- a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ gate-octavia-dashboard-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-tox-functional-py35/post.yaml b/playbooks/legacy/octavia-tox-functional-py35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/octavia-tox-functional-py35/post.yaml +++ b/playbooks/legacy/octavia-tox-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-tox-functional-py35/run.yaml b/playbooks/legacy/octavia-tox-functional-py35/run.yaml index a430baba..bad5ac6f 100644 --- a/playbooks/legacy/octavia-tox-functional-py35/run.yaml +++ b/playbooks/legacy/octavia-tox-functional-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-tox-functional-py35 from old job gate-octavia-tox-functional-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-tox-functional/post.yaml b/playbooks/legacy/octavia-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/octavia-tox-functional/post.yaml +++ b/playbooks/legacy/octavia-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-tox-functional/run.yaml b/playbooks/legacy/octavia-tox-functional/run.yaml index b09484d0..c041fe82 100644 --- a/playbooks/legacy/octavia-tox-functional/run.yaml +++ b/playbooks/legacy/octavia-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-tox-functional from old job gate-octavia-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml index 569c7c4d..bea03d0a 100644 --- a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-octavia-v1-dsvm-py3x-scenario-multinode tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml index 1ad244b8..170f3e83 100644 --- a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-v1-dsvm-py3x-scenario from old job gate-octavia-v1-dsvm-py3x-scenario-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +63,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml index 72b5ad39..6a6948ab 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml @@ -3,6 +3,11 @@ gate-octavia-v1-dsvm-scenario-kvm-centos.7-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml index 7f2a03e9..7c48b0d0 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-v1-dsvm-scenario-lxd from old job gate-octavia-v1-dsvm-scenario-lxd-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml index 08faa4af..66fdf6c5 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-v1-dsvm-scenario-multinode from old job gate-octavia-v1-dsvm-scenario-multinode tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +63,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml index 717ecfff..9501fd5d 100644 --- a/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml +++ b/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-octavia-v1-dsvm-scenario from old job gate-octavia-v1-dsvm-scenario-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/omni-tests/post.yaml b/playbooks/legacy/omni-tests/post.yaml index c6093ad2..446990b7 100644 --- a/playbooks/legacy/omni-tests/post.yaml +++ b/playbooks/legacy/omni-tests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/omni-tests/run.yaml b/playbooks/legacy/omni-tests/run.yaml index 32dac433..25ec955f 100644 --- a/playbooks/legacy/omni-tests/run.yaml +++ b/playbooks/legacy/omni-tests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-omni-tests from old job gate-omni-tests tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +64,5 @@ ./run_tests.sh -j executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ooi-tox-functional/post.yaml b/playbooks/legacy/ooi-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ooi-tox-functional/post.yaml +++ b/playbooks/legacy/ooi-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ooi-tox-functional/run.yaml b/playbooks/legacy/ooi-tox-functional/run.yaml index 4bf43275..2a9b1a27 100644 --- a/playbooks/legacy/ooi-tox-functional/run.yaml +++ b/playbooks/legacy/ooi-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ooi-tox-functional from old job gate-ooi-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-announce-release/run.yaml index bf4a7485..a0f28914 100644 --- a/playbooks/legacy/openstack-ansible-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-announce-release/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-ansible-announce-release from old job openstack-ansible-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,6 +75,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,6 +85,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -93,4 +102,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml index a8d088ae..c214d051 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-galera_server-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml index 1d1618bb..914e03ff 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-galera_server-ansible-ssl-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh ssl fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml index 9d90ec1a..750e554c 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-galera_server-ansible-ssl-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh ssl fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml index 513aa5b6..dbe4af97 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-galera_server-ansible-upgrade-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml index 0de6f338..d4dba81c 100644 --- a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-galera_server-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml index 1fd49b87..2a3ff437 100644 --- a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-haproxy_server-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml index 9217e852..5ec6e62a 100644 --- a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-memcached_server-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml index 73e6f69b..1f4ff5eb 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-openstack-ansible-aio-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "aio" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml index fb89d786..01328d91 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-openstack-ansible-aio-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "aio" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml index 41e59c9e..7da3ba41 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-openstack-ansible-aio-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "aio" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml index 76b07a03..d36e2db2 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-openstack-ansible-aio-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "aio" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml index a9e03688..758133ec 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-openstack-ansible-ceph-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "ceph" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml index 71aa6862..c9551f40 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-openstack-ansible-ceph-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "ceph" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml index 57f36dd3..6c7d32de 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-openstack-ansible-ceph-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "ceph" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml index d6ee198b..e0df84f6 100644 --- a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-openstack-ansible-octavia-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ # Execute the functional test sudo scripts/gate-check-commit.sh "octavia" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml index 0ac9ec6c..d7e11d93 100644 --- a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_almanach-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml index 690d1440..b15bb6be 100644 --- a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml @@ -3,6 +3,11 @@ job openstack-ansible-os_aodh-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml index d69bdcf5..c617c68b 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_barbican-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml index 1b21a954..2ff716a7 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_barbican-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml index 049aa6df..f287997b 100644 --- a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_barbican-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml index 5407476a..10941f07 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-os_ceilometer-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml index 49baf977..7b55174b 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml index d3dfa914..94358c4b 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml index cbb38bd0..d17d37dd 100644 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml index 3b0dd487..9b08afe5 100644 --- a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_cinder-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml index 70c96f67..5bfd7000 100644 --- a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_cinder-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml index 240bc9aa..3deb5ab1 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-os_cloudkitty-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml index ffbc9b63..b1d7fdb2 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_cloudkitty-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml index 9930d904..c387b7df 100644 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_cloudkitty-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml index 36bd05d9..f1d26c46 100644 --- a/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_designate-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml index c8cf76fb..1a31519f 100644 --- a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_freezer-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml index aa937f5d..3907f529 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_glance-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml index b11cf89c..1967df61 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_glance-ansible-upgrade-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml index 22b1e64a..a89b60d6 100644 --- a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_glance-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml index 4b90c834..bf11a5f8 100644 --- a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_gnocchi-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml index 63d58cc3..76249bea 100644 --- a/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml @@ -3,6 +3,11 @@ job openstack-ansible-os_heat-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml index ffe446d8..6ad707b9 100644 --- a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_horizon-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml index 7ba7c845..2090d370 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_ironic-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml index e84eb336..7893a625 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_ironic-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml index 95064c13..d77a808b 100644 --- a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_ironic-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml index 3bc87ed6..145f3101 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_keystone-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml index c9e54969..adda60c2 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_keystone-ansible-upgrade-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml index c0801153..96fc25bc 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_keystone-ansible-upgrade-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml index e4f4c155..b7d77ddd 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_keystone-ansible-uw_apache-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml index 978f5906..9a3be245 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml index e621e448..3361a68f 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml index 85e91861..4f4f167f 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml index 3b3f3674..9161dbb8 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml index 24fca602..275a0fbe 100644 --- a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml index a52420a2..7aa66780 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_magnum-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml index 67482140..e64ab192 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_magnum-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml index 59901c71..31068c04 100644 --- a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_magnum-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml index b8bc8d73..b3b74b59 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_monasca-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml index fce31461..fe19c480 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_monasca-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml index a6ebbc09..15c0cd85 100644 --- a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_monasca-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml index 64e8aff3..d37fa93f 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_neutron-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml index 8aa18895..73326c6b 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_neutron-ansible-calico-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh calico fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml index 5b1dc715..cd250265 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_neutron-ansible-dragonflow-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh dragonflow fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml index a50872df..f7bb564e 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_ovs fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml index 095dacf6..ee3a8ae2 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_ovs fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml index 4e7f1758..755f1613 100644 --- a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_neutron-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml index e1da08de..9a03eaab 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml @@ -3,6 +3,11 @@ job openstack-ansible-os_nova-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml index cebc5157..44a28397 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_lxd fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml index 754e8206..1e317535 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_lxd fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml index 65e5e3b1..632e83fe 100644 --- a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-os_nova-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml index 8468e322..74ae9ee5 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_rally-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml index d5a293b3..720667fa 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_rally-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml index 54d6d416..6071156c 100644 --- a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_rally-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml index 0ec8b8f0..eafc158d 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_sahara-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml index c1381d7e..8a87ea52 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_sahara-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml index 5a445885..1cbd913a 100644 --- a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_sahara-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml index 64b4cd7b..e3e752a2 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_swift-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml index 248d43a5..3667cf5d 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_pypy fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml index 4c5af368..5e35b6d7 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_pypy fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml index 016a417e..8303c09f 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_swift-ansible-multi_reg-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml index 17d17376..94c4fa4e 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml index f8701aa1..48c06575 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml index 493237aa..ff02c089 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_swift-ansible-upgrade-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml index e6a5bed6..e63600fb 100644 --- a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-os_swift-ansible-upgrade-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh upgrade fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml index c6d2a492..17a69a87 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_trove-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml index 30c602aa..3eb9d21f 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_trove-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml index f15c4d22..f4a9d9ac 100644 --- a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_trove-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml index ea8472ce..653df22d 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_watcher-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml index c39714b9..1e68de3f 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_watcher-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml index 7acd5b98..2974f821 100644 --- a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_watcher-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml index 0210a706..44d874dc 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml @@ -3,6 +3,11 @@ old job openstack-ansible-os_zaqar-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml index c87d1c59..6ce7a87e 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_zaqar-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml index 7c1601b0..a2e76fb7 100644 --- a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-os_zaqar-ansible-func-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml index 31d0b9c6..49cd8f12 100644 --- a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-pip_lock_down-ansible-func-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml index 5db2e68a..a08ab2fc 100644 --- a/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml @@ -3,6 +3,11 @@ job openstack-ansible-plugins-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml index fca6a058..96b2213d 100644 --- a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-ansible-plugins-ansible-func_py3-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_py3 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml index 3d840f42..2aa61835 100644 --- a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-ansible-plugins-ansible-func_py3-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +55,12 @@ sudo yum-config-manager --enable epel >/dev/null sudo yum-config-manager --enable updates >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +72,7 @@ if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then sudo yum-config-manager --disable epel >/dev/null fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,6 +82,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh-keyscan localhost >> ~/.ssh/known_hosts ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +97,5 @@ else /usr/local/jenkins/slave_scripts/run-tox.sh func_py3 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml index f400f099..dfb78c56 100644 --- a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-rabbitmq_server-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml +++ b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml index 8b22797b..f6cd9179 100644 --- a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml +++ b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml @@ -3,6 +3,11 @@ from old job openstack-ansible-rsyslog_server-announce-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,6 +76,7 @@ (cd $TOOLS_DIR && /usr/local/jenkins/slave_scripts/install-distro-packages.sh) executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,6 +86,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -94,4 +103,5 @@ # Run the announce script. $TOOLS_DIR/announce.sh $WORKSPACE $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml b/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml index d9427398..f26bb387 100644 --- a/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml +++ b/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml b/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml index a5f5b550..e8300421 100644 --- a/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml +++ b/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-api-ref-publish-lang from old job openstack-api-ref-publish-lang tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishlang-api + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-api-ref/post.yaml b/playbooks/legacy/openstack-api-ref/post.yaml index d9427398..f26bb387 100644 --- a/playbooks/legacy/openstack-api-ref/post.yaml +++ b/playbooks/legacy/openstack-api-ref/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-api-ref/run.yaml b/playbooks/legacy/openstack-api-ref/run.yaml index 8dad741c..e8b65cc8 100644 --- a/playbooks/legacy/openstack-api-ref/run.yaml +++ b/playbooks/legacy/openstack-api-ref/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-api-ref from old job openstack-api-ref tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs-api + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml +++ b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml index a6105d14..1321a132 100644 --- a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml +++ b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial-3-node executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml index 11784714..c738a1b4 100644 --- a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-helm-addons-nocluster-linter-ovs-rbd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml index 993063be..7ab79125 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-helm-aio-basic-linuxbridge-rbd-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml index 5532cc37..e0efd932 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-pvc from old job gate-openstack-helm-aio-basic-ovs-pvc-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml index 37f12968..8c3bed68 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml @@ -3,6 +3,11 @@ gate-openstack-helm-aio-basic-ovs-radosgw-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml index 72e4867b..a9e08260 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-helm-aio-basic-ovs-rbd-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh centos-7 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml index 8d367d51..a4059eae 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-helm-aio-basic-ovs-rbd-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh fedora-26 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml index dedfb359..c47f2e37 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-rbd from old job gate-openstack-helm-aio-basic-ovs-rbd-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml index a2a6abec..3dcfad91 100644 --- a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-swift from old job gate-openstack-helm-aio-basic-ovs-swift-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml index 0ca455fa..194ab069 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-helm-infra-aio-basic-ovs-rbd-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh centos-7 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml index fa3b7e9a..a4c56b72 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-helm-infra-aio-basic-ovs-rbd-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh fedora-26 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml index 0df90b29..02d6ea11 100644 --- a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml @@ -3,6 +3,11 @@ gate-openstack-helm-infra-aio-basic-ovs-rbd-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml index 2780f57b..fd06f416 100644 --- a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml @@ -3,6 +3,11 @@ old job gate-openstack-helm-infra-nocluster-linter-ovs-rbd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml +++ b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml index 7b293326..4cccda9d 100644 --- a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml +++ b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial-3-node executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml +++ b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml index 3de0b758..e8ff0f6b 100644 --- a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml +++ b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial-3-node executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml +++ b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml index 040fa169..22680aba 100644 --- a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml +++ b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -3,6 +3,11 @@ from old job gate-openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial-3-node executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml +++ b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml index a5833215..03bb6936 100644 --- a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml +++ b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml @@ -3,6 +3,11 @@ job gate-openstack-helm-nocluster-linter-ovs-rbd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ tools/gate/setup_gate.sh ubuntu-xenial executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml index fe356df3..3c7d9eff 100644 --- a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml +++ b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml index 26de0bce..e21e9554 100644 --- a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml +++ b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml @@ -3,6 +3,11 @@ openstack-manuals-tox-doc-publishdocs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,8 +55,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-planet-unittest/run.yaml b/playbooks/legacy/openstack-planet-unittest/run.yaml index 1f2114af..f7d20509 100644 --- a/playbooks/legacy/openstack-planet-unittest/run.yaml +++ b/playbooks/legacy/openstack-planet-unittest/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstack-planet-unittest from old job gate-openstack-planet-unittest tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,9 +48,11 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | python test.py + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker-centos-7/run.yaml b/playbooks/legacy/openstackci-beaker-centos-7/run.yaml index 8dc6c589..8a455346 100644 --- a/playbooks/legacy/openstackci-beaker-centos-7/run.yaml +++ b/playbooks/legacy/openstackci-beaker-centos-7/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-openstackci-beaker-centos-7 from old job gate-openstackci-beaker-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: sudo pip install "pip<8" "virtualenv<14" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -11,6 +17,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstackci executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +27,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +46,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,11 +67,13 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo gem install bundler --no-rdoc --no-ri --verbose + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +83,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +96,5 @@ export BEAKER_debug=yes export BEAKER_color=no bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml b/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml index ad7aa334..fc932bcc 100644 --- a/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-openstackci-beaker-ubuntu-trusty from old job gate-openstackci-beaker-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: sudo pip install "pip<8" "virtualenv<14" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -11,6 +17,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstackci executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +27,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +46,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,11 +67,13 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo gem install bundler --no-rdoc --no-ri --verbose + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +83,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +96,5 @@ export BEAKER_debug=yes export BEAKER_color=no bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker/run.yaml b/playbooks/legacy/openstackci-beaker/run.yaml index b95dd40e..7aa1fcf1 100644 --- a/playbooks/legacy/openstackci-beaker/run.yaml +++ b/playbooks/legacy/openstackci-beaker/run.yaml @@ -2,8 +2,14 @@ name: Autoconverted job legacy-openstackci-beaker from old job gate-openstackci-beaker-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: sudo pip install "pip<8" "virtualenv<14" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -11,6 +17,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstackci executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +27,7 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +46,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,11 +67,13 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo gem install bundler --no-rdoc --no-ri --verbose + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,6 +83,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +96,5 @@ export BEAKER_debug=yes export BEAKER_color=no bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackdocstheme-api-ref/post.yaml b/playbooks/legacy/openstackdocstheme-api-ref/post.yaml index 75275036..e7ab1197 100644 --- a/playbooks/legacy/openstackdocstheme-api-ref/post.yaml +++ b/playbooks/legacy/openstackdocstheme-api-ref/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -22,9 +22,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -35,9 +35,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -48,9 +48,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -61,9 +61,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/openstackdocstheme-api-ref/run.yaml b/playbooks/legacy/openstackdocstheme-api-ref/run.yaml index 712efe17..3499c105 100644 --- a/playbooks/legacy/openstackdocstheme-api-ref/run.yaml +++ b/playbooks/legacy/openstackdocstheme-api-ref/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-openstackdocstheme-api-ref from old job gate-openstackdocstheme-api-ref tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-ref + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml index 5a81ee20..6d5675d6 100644 --- a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml +++ b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml index bbb4a565..96b05311 100644 --- a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml +++ b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml @@ -3,6 +3,11 @@ old job gate-openstackdocstheme-tox-doc-publish-buildpdf tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +55,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh buildpdf + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +75,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/os-brick-pylint/post.yaml b/playbooks/legacy/os-brick-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/os-brick-pylint/post.yaml +++ b/playbooks/legacy/os-brick-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/os-brick-pylint/run.yaml b/playbooks/legacy/os-brick-pylint/run.yaml index 24d78c85..2845511a 100644 --- a/playbooks/legacy/os-brick-pylint/run.yaml +++ b/playbooks/legacy/os-brick-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-os-brick-pylint from old job gate-os-brick-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml +++ b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml index 1ba9628d..0aac7df2 100644 --- a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml +++ b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-api-dsvm-centos-7 from old job gate-osbackup-freezer-api-dsvm-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml +++ b/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml index e0496c84..c7c4875c 100644 --- a/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml +++ b/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-api-dsvm from old job gate-osbackup-freezer-api-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml index 3fdf5306..e52b27a6 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-dsvm-centos-7 from old job gate-osbackup-freezer-dsvm-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml index db011c4a..7d954d5e 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-dsvm-opensuse-423 from old job gate-osbackup-freezer-dsvm-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm/post.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm/run.yaml index bff3e14f..a63e0f14 100644 --- a/playbooks/legacy/osbackup-freezer-dsvm/run.yaml +++ b/playbooks/legacy/osbackup-freezer-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-dsvm from old job gate-osbackup-freezer-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml +++ b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml index 56b1432a..bd664626 100644 --- a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml +++ b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osbackup-freezer-web-ui-dsvm from old job gate-osbackup-freezer-web-ui-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml b/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml +++ b/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml b/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml index 6350e1f6..cb06ff81 100644 --- a/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml +++ b/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osc-dsvm-functional-n-net from old job gate-osc-dsvm-functional-n-net-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional-tips/post.yaml b/playbooks/legacy/osc-dsvm-functional-tips/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osc-dsvm-functional-tips/post.yaml +++ b/playbooks/legacy/osc-dsvm-functional-tips/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osc-dsvm-functional-tips/run.yaml b/playbooks/legacy/osc-dsvm-functional-tips/run.yaml index 46dc8175..7bd53738 100644 --- a/playbooks/legacy/osc-dsvm-functional-tips/run.yaml +++ b/playbooks/legacy/osc-dsvm-functional-tips/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osc-dsvm-functional-tips from old job gate-osc-dsvm-functional-tips-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +53,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +86,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional/post.yaml b/playbooks/legacy/osc-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osc-dsvm-functional/post.yaml +++ b/playbooks/legacy/osc-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osc-dsvm-functional/run.yaml b/playbooks/legacy/osc-dsvm-functional/run.yaml index b2fd9a83..185ba437 100644 --- a/playbooks/legacy/osc-dsvm-functional/run.yaml +++ b/playbooks/legacy/osc-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osc-dsvm-functional from old job gate-osc-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +44,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-placement-dsvm-functional/post.yaml b/playbooks/legacy/osc-placement-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/osc-placement-dsvm-functional/post.yaml +++ b/playbooks/legacy/osc-placement-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/osc-placement-dsvm-functional/run.yaml b/playbooks/legacy/osc-placement-dsvm-functional/run.yaml index 16809b69..98765d69 100644 --- a/playbooks/legacy/osc-placement-dsvm-functional/run.yaml +++ b/playbooks/legacy/osc-placement-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-osc-placement-dsvm-functional from old job gate-osc-placement-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml +++ b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml index 27395309..9a652075 100644 --- a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml +++ b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo-cookiecutter-tox-cookiecutter from old job gate-oslo-cookiecutter-tox-cookiecutter-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh cookiecutter + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml b/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml +++ b/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml b/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml index 7470c1da..b52c8ac6 100644 --- a/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml +++ b/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.db-tox-mysql-python from old job gate-oslo.db-tox-mysql-python-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh mysql-python + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml b/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml +++ b/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml b/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml index 82761ef0..1736ff4d 100644 --- a/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml +++ b/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.log-src-grenade-dsvm from old job gate-oslo.log-src-grenade-dsvm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml index 4f53dd18..8f161ac8 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-oslo.messaging-src-dsvm-full-amqp1-dual-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml index b5900f09..ab1877f4 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-src-dsvm-full-amqp1-hybrid-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml index 5137e6f8..bfe4e741 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-oslo.messaging-src-dsvm-full-kafka-default-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml index 79a4f9ee..796408b0 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-src-dsvm-full-kafka-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml index 50b709bd..148c4a71 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-src-dsvm-full-pika-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml index e843ddfb..a74234a0 100644 --- a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-src-dsvm-full-zmq-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml index 55c54414..82f51988 100644 --- a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-src-grenade-dsvm-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml index c317e275..d921269f 100644 --- a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-src-grenade-dsvm from old job gate-oslo.messaging-src-grenade-dsvm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +46,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml index f3b9229a..c2277d18 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml @@ -3,6 +3,11 @@ old job gate-oslo.messaging-telemetry-dsvm-integration-amqp1-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +91,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml index 9c5d0734..c20a86b8 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml @@ -3,6 +3,11 @@ old job gate-oslo.messaging-telemetry-dsvm-integration-kafka-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +91,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml index 75041cbc..b11acafb 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml @@ -3,6 +3,11 @@ old job gate-oslo.messaging-telemetry-dsvm-integration-pika-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +91,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml index be3a8cdc..7e902062 100644 --- a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml @@ -3,6 +3,11 @@ old job gate-oslo.messaging-telemetry-dsvm-integration-zmq-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +91,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml index 7d35d661..62bdd396 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py27-func-amqp1 from old job gate-oslo.messaging-tox-py27-func-amqp1-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-amqp1 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml index d455f6cb..7bd844b9 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py27-func-kafka from old job gate-oslo.messaging-tox-py27-func-kafka-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-kafka + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml index 052b814b..2b23e504 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py27-func-pika from old job gate-oslo.messaging-tox-py27-func-pika-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-pika + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml index 49456d7e..d89cf505 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml @@ -3,6 +3,11 @@ gate-oslo.messaging-tox-py27-func-rabbit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-rabbit + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml index 6e24a057..eb40b38c 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml @@ -3,6 +3,11 @@ gate-oslo.messaging-tox-py27-func-zmq-proxy-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq-proxy + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml index 1c87ff59..5f77bcf5 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml @@ -3,6 +3,11 @@ job gate-oslo.messaging-tox-py27-func-zmq-pubsub-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq-pubsub + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml index f2ffc423..c140ccb5 100644 --- a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py27-func-zmq from old job gate-oslo.messaging-tox-py27-func-zmq-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml index 34492f8e..0ebcf2e5 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py35-func-amqp1 from old job gate-oslo.messaging-tox-py35-func-amqp1-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-amqp1 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml index a3c038cd..4da6f0ce 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml @@ -3,6 +3,11 @@ gate-oslo.messaging-tox-py35-func-rabbit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-rabbit + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml index f62e45ca..315e90a0 100644 --- a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-oslo.messaging-tox-py35-func-zmq from old job gate-oslo.messaging-tox-py35-func-zmq-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-zmq + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml +++ b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml index 1f85703c..770141aa 100644 --- a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml +++ b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml @@ -3,6 +3,11 @@ from old job gate-oslo.versionedobjects-src-grenade-dsvm-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ospurge-dsvm-functional/post.yaml b/playbooks/legacy/ospurge-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/ospurge-dsvm-functional/post.yaml +++ b/playbooks/legacy/ospurge-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/ospurge-dsvm-functional/run.yaml b/playbooks/legacy/ospurge-dsvm-functional/run.yaml index 037b90be..43e63ba4 100644 --- a/playbooks/legacy/ospurge-dsvm-functional/run.yaml +++ b/playbooks/legacy/ospurge-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ospurge-dsvm-functional from old job gate-ospurge-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ovsdbapp-tox-functional/post.yaml b/playbooks/legacy/ovsdbapp-tox-functional/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/ovsdbapp-tox-functional/post.yaml +++ b/playbooks/legacy/ovsdbapp-tox-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/ovsdbapp-tox-functional/run.yaml b/playbooks/legacy/ovsdbapp-tox-functional/run.yaml index 4ff81522..78ab95cc 100644 --- a/playbooks/legacy/ovsdbapp-tox-functional/run.yaml +++ b/playbooks/legacy/ovsdbapp-tox-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-ovsdbapp-tox-functional from old job gate-ovsdbapp-tox-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml +++ b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml index 7c619dc0..168bb72d 100644 --- a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml +++ b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-packstack-integration-scenario001-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ export SCENARIO=scenario001 ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml +++ b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml index 327b6308..39829c2b 100644 --- a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml +++ b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-packstack-integration-scenario002-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ export SCENARIO=scenario002 ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml +++ b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml index 13561441..acde5318 100644 --- a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml +++ b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-packstack-integration-scenario003-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ export SCENARIO=scenario003 ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-releasenotes/run.yaml b/playbooks/legacy/packstack-releasenotes/run.yaml index 7f3b9f10..a9f6e841 100644 --- a/playbooks/legacy/packstack-releasenotes/run.yaml +++ b/playbooks/legacy/packstack-releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-packstack-releasenotes from old job gate-packstack-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-mongodb/post.yaml b/playbooks/legacy/panko-tox-py27-mongodb/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py27-mongodb/post.yaml +++ b/playbooks/legacy/panko-tox-py27-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py27-mongodb/run.yaml b/playbooks/legacy/panko-tox-py27-mongodb/run.yaml index e9d62f19..048982bf 100644 --- a/playbooks/legacy/panko-tox-py27-mongodb/run.yaml +++ b/playbooks/legacy/panko-tox-py27-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py27-mongodb from old job gate-panko-tox-py27-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mongodb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-mysql/post.yaml b/playbooks/legacy/panko-tox-py27-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py27-mysql/post.yaml +++ b/playbooks/legacy/panko-tox-py27-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py27-mysql/run.yaml b/playbooks/legacy/panko-tox-py27-mysql/run.yaml index c3b7f64a..da310a01 100644 --- a/playbooks/legacy/panko-tox-py27-mysql/run.yaml +++ b/playbooks/legacy/panko-tox-py27-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py27-mysql from old job gate-panko-tox-py27-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-postgresql/post.yaml b/playbooks/legacy/panko-tox-py27-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py27-postgresql/post.yaml +++ b/playbooks/legacy/panko-tox-py27-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py27-postgresql/run.yaml b/playbooks/legacy/panko-tox-py27-postgresql/run.yaml index 65612701..1e244d6f 100644 --- a/playbooks/legacy/panko-tox-py27-postgresql/run.yaml +++ b/playbooks/legacy/panko-tox-py27-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py27-postgresql from old job gate-panko-tox-py27-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-mongodb/post.yaml b/playbooks/legacy/panko-tox-py35-mongodb/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py35-mongodb/post.yaml +++ b/playbooks/legacy/panko-tox-py35-mongodb/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py35-mongodb/run.yaml b/playbooks/legacy/panko-tox-py35-mongodb/run.yaml index 6ea5c6e0..32e1cf25 100644 --- a/playbooks/legacy/panko-tox-py35-mongodb/run.yaml +++ b/playbooks/legacy/panko-tox-py35-mongodb/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py35-mongodb from old job gate-panko-tox-py35-mongodb-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mongodb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-mysql/post.yaml b/playbooks/legacy/panko-tox-py35-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py35-mysql/post.yaml +++ b/playbooks/legacy/panko-tox-py35-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py35-mysql/run.yaml b/playbooks/legacy/panko-tox-py35-mysql/run.yaml index 89ec8e13..342b6523 100644 --- a/playbooks/legacy/panko-tox-py35-mysql/run.yaml +++ b/playbooks/legacy/panko-tox-py35-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py35-mysql from old job gate-panko-tox-py35-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-postgresql/post.yaml b/playbooks/legacy/panko-tox-py35-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/panko-tox-py35-postgresql/post.yaml +++ b/playbooks/legacy/panko-tox-py35-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/panko-tox-py35-postgresql/run.yaml b/playbooks/legacy/panko-tox-py35-postgresql/run.yaml index 7b162e80..ddba9773 100644 --- a/playbooks/legacy/panko-tox-py35-postgresql/run.yaml +++ b/playbooks/legacy/panko-tox-py35-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-panko-tox-py35-postgresql from old job gate-panko-tox-py35-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml b/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml +++ b/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml b/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml index 86756c96..a0efe4ad 100644 --- a/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml +++ b/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-pbr-installation-dsvm-upstream from old job gate-pbr-installation-dsvm-upstream-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +136,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pbr-installation-dsvm/post.yaml b/playbooks/legacy/pbr-installation-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/pbr-installation-dsvm/post.yaml +++ b/playbooks/legacy/pbr-installation-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/pbr-installation-dsvm/run.yaml b/playbooks/legacy/pbr-installation-dsvm/run.yaml index d00cb8e5..e851adc0 100644 --- a/playbooks/legacy/pbr-installation-dsvm/run.yaml +++ b/playbooks/legacy/pbr-installation-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-pbr-installation-dsvm from old job gate-pbr-installation-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +136,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-newton/run.yaml b/playbooks/legacy/periodic-docs-newton/run.yaml index c4288ac2..1b55db5a 100644 --- a/playbooks/legacy/periodic-docs-newton/run.yaml +++ b/playbooks/legacy/periodic-docs-newton/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-docs-newton from old job periodic-{name}-docs-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,8 +56,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-ocata/run.yaml b/playbooks/legacy/periodic-docs-ocata/run.yaml index b029f5a3..e580ebdb 100644 --- a/playbooks/legacy/periodic-docs-ocata/run.yaml +++ b/playbooks/legacy/periodic-docs-ocata/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-docs-ocata from old job periodic-{name}-docs-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,8 +56,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-pike/run.yaml b/playbooks/legacy/periodic-docs-pike/run.yaml index 52c6624b..6b4a78e3 100644 --- a/playbooks/legacy/periodic-docs-pike/run.yaml +++ b/playbooks/legacy/periodic-docs-pike/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-docs-pike from old job periodic-{name}-docs-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,8 +56,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-gitdm/run.yaml b/playbooks/legacy/periodic-gitdm/run.yaml index 41526dd8..22850a90 100644 --- a/playbooks/legacy/periodic-gitdm/run.yaml +++ b/playbooks/legacy/periodic-gitdm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-gitdm from old job periodic-gitdm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ export LP_STATS=n bash ./do-it.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml index 71b8fec5..50bf3172 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-2-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph centos-7 shell 2 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml index af91816f..41a34c9d 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 2 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml index bbf5ec5a..c148b6be 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-3-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph centos-7 shell 3 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml index 6450633c..92532b55 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 3 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml index 7be6c124..7fddf645 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-4-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary ceph centos-7 shell 4 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml index c2aa88ab..ab4a5097 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 4 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml index 856d7e75..4ea7feab 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 2 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml index b558b292..0300a74c 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 2 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml index ffdc8cce..3c33b0c6 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 3 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml index 7b1ad46e..9b68d514 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 3 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml index 8e1ebeb8..71d4c0fd 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 4 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml index 785a628f..f1e9d273 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml index d0619e90..868ea212 100644 --- a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml @@ -3,6 +3,11 @@ from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,6 +40,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,10 +49,12 @@ set -x sudo yum-config-manager --enable epel || true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +63,5 @@ set -x tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 4 periodic executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml index e6e08c1a..cceebe1e 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml index 5fa8bbaa..781a3546 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml @@ -3,8 +3,14 @@ job periodic-magnum-dib-buildimage-centos-dcos-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -104,4 +110,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml index e6e08c1a..cceebe1e 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml index 4767f622..9d5acd16 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml @@ -3,8 +3,14 @@ old job periodic-magnum-dib-buildimage-fedora-atomic-25-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -104,4 +110,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml index e6e08c1a..cceebe1e 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml index 88a48368..ad405845 100644 --- a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml @@ -3,8 +3,14 @@ old job periodic-magnum-dib-buildimage-ubuntu-mesos-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -104,4 +110,5 @@ deactivate set -u executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml b/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml +++ b/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml b/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml index 09621f90..5e4dbf3c 100644 --- a/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml +++ b/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-neutron-dsvm-functional from old job periodic-neutron-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml +++ b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml index 85a94023..b31656ed 100644 --- a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml +++ b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml @@ -3,6 +3,11 @@ from old job periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml index 1f675855..edbc5036 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-aio-master-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml index 0dc4cd93..b4f717ca 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-aio-master-opensuse-423 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml index 50e92d3a..4b47201c 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-deploy-aio-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml index 1eb2eac3..4833e908 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-aio-ocata-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml index db8af4fd..01d033b0 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-deploy-aio-ocata-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml index ddf741b8..c81bce78 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-aio-pike-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml index fe98fc7b..52de2fcb 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-aio-pike-opensuse-423 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml index bbf60cf3..a8beeafc 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml @@ -3,6 +3,11 @@ job periodic-openstack-ansible-deploy-aio-pike-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml index aba2abcc..018fec9f 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-ceph-master-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml index 2dae34ae..0285bb36 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-deploy-ceph-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml index 65ba81cf..b4ab55ff 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-ceph-ocata-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml index c57f2a12..5e634591 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-deploy-ceph-ocata-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml index 0a84bc5c..e247867a 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-ceph-pike-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml index 99039ce5..2dc1fa7b 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-deploy-ceph-pike-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml index 6bb78bc1..e44a1439 100644 --- a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-deploy-translations-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "translations" "deploy" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml index f7267c84..fa853fe1 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-upgrade-aio-master-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml index fbd573df..190e615a 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-upgrade-aio-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml index 098363cd..df8c6261 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-upgrade-aio-ocata-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml index 1ad3fb4d..2ff58289 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-upgrade-aio-pike-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml index c67441dc..67a1a3a9 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-upgrade-aio-pike-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "aio" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml index f4a57f0e..80c3241c 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-upgrade-ceph-master-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml index 158fd15d..67f11b54 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-upgrade-ceph-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml index 6533d00e..3375c5bd 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job periodic-openstack-ansible-upgrade-ceph-pike-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml index 948310fe..0fc9da55 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml index 3e45b1e3..1eedcb2b 100644 --- a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml @@ -3,6 +3,11 @@ old job periodic-openstack-ansible-upgrade-ceph-pike-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,6 +42,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ set -x sudo scripts/gate-check-commit.sh "ceph" "upgrade" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-package-stackviz-element/post.yaml b/playbooks/legacy/periodic-package-stackviz-element/post.yaml index 63337338..2b396aed 100644 --- a/playbooks/legacy/periodic-package-stackviz-element/post.yaml +++ b/playbooks/legacy/periodic-package-stackviz-element/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-package-stackviz-element/run.yaml b/playbooks/legacy/periodic-package-stackviz-element/run.yaml index ef8fa499..62da84fb 100644 --- a/playbooks/legacy/periodic-package-stackviz-element/run.yaml +++ b/playbooks/legacy/periodic-package-stackviz-element/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-package-stackviz-element from old job periodic-package-stackviz-element tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -22,10 +27,12 @@ --branch=$BRANCH \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +42,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ npm run prod --verbose mv dist/stackviz*.tar.gz dist/stackviz-latest.tar.gz executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml b/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml +++ b/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml b/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml index 6a0bc8f8..bcc7ae38 100644 --- a/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml +++ b/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-py27-with-oslo-master from old job periodic-{name}-py27-with-oslo-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,10 +64,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox-with-oslo-master.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +84,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml b/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml +++ b/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml b/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml index 916ffb5b..996f09e3 100644 --- a/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml +++ b/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml @@ -3,6 +3,11 @@ periodic-{name}-py35-with-neutron-lib-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -37,10 +42,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,10 +65,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox-with-neutron-lib-master.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +85,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml b/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml +++ b/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml b/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml index aa460934..bcae9f0c 100644 --- a/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml +++ b/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-py35-with-oslo-master from old job periodic-{name}-py35-with-oslo-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,10 +64,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox-with-oslo-master.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +84,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml +++ b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml index 0ddac739..1487911d 100644 --- a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml +++ b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-py35-with-ovsdbapp-master from old job periodic-{name}-py35-with-ovsdbapp-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,11 +56,13 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox-with-dependency-master.sh $ZUUL_SHORT_PROJECT_NAME py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +77,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-newton/post.yaml b/playbooks/legacy/periodic-python27-newton/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-python27-newton/post.yaml +++ b/playbooks/legacy/periodic-python27-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-python27-newton/run.yaml b/playbooks/legacy/periodic-python27-newton/run.yaml index 3c86205c..4eab5629 100644 --- a/playbooks/legacy/periodic-python27-newton/run.yaml +++ b/playbooks/legacy/periodic-python27-newton/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-python27-newton from old job periodic-{name}-python27-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +56,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +76,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-ocata/post.yaml b/playbooks/legacy/periodic-python27-ocata/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-python27-ocata/post.yaml +++ b/playbooks/legacy/periodic-python27-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-python27-ocata/run.yaml b/playbooks/legacy/periodic-python27-ocata/run.yaml index 0c427cf7..e0ee4715 100644 --- a/playbooks/legacy/periodic-python27-ocata/run.yaml +++ b/playbooks/legacy/periodic-python27-ocata/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-python27-ocata from old job periodic-{name}-python27-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +56,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +76,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-pike/post.yaml b/playbooks/legacy/periodic-python27-pike/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/periodic-python27-pike/post.yaml +++ b/playbooks/legacy/periodic-python27-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-python27-pike/run.yaml b/playbooks/legacy/periodic-python27-pike/run.yaml index 384c5135..ca9807d1 100644 --- a/playbooks/legacy/periodic-python27-pike/run.yaml +++ b/playbooks/legacy/periodic-python27-pike/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-python27-pike from old job periodic-{name}-python27-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -36,10 +41,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,10 +56,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +76,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml index 8f51778c..ca2b7880 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-periodic-tempest-dsvm-all-master from old job periodic-tempest-dsvm-all-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,4 +38,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml index fee63486..c262736a 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-tempest-dsvm-full-test-accounts-ubuntu-xenial-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml index a535f5f5..1a9d77fc 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-tempest-dsvm-networking-calico-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml index bbea06eb..6a21c96a 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ubuntu-xenial-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml index d6e24e8b..7fde00d4 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-networking-midonet-aio-ml2-ubuntu-xenial-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml index 3ebe4306..377fea05 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-networking-midonet-aio-v2-full-ubuntu-xenial-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml index df2b3749..30ecfea3 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-networking-midonet-aio-v2-ubuntu-xenial-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml index 1f1c0693..fa0630a4 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml @@ -3,6 +3,11 @@ periodic-tempest-dsvm-networking-sfc-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml index 3750d779..147e036e 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml @@ -3,6 +3,11 @@ job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml index 69b346ef..2815eb56 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-neutron-full-non-admin-ubuntu-xenial-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml index a8591c66..8e46388b 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml @@ -3,6 +3,11 @@ job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml index fcea5395..956585ad 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml @@ -3,6 +3,11 @@ job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml index d1ebd19f..b9b6bf83 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tempest-dsvm-neutron-full-test-accounts-ubuntu-xenial-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml index 784d6150..258b048a 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml @@ -3,6 +3,11 @@ periodic-tempest-dsvm-neutron-pg-full-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,4 +42,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml index 83a15a77..6de10198 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-tempest-dsvm-neutron-with-ryu-master-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml index ecf90cc2..25fdae65 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-newton from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml index a6b5c5e4..70f745d8 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-ocata from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml index 5e71399f..bfced59e 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-pike from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml index 1f3db6cf..ee03db45 100644 --- a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml +++ b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml @@ -3,6 +3,11 @@ old job periodic-tempest-dsvm-oslo-latest-full-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml index 1751c37f..c206c9fd 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml index 4d4f0519..3b168af0 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-fakeha-caserver tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml index fcab3dca..a36ccd09 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml @@ -3,6 +3,11 @@ old job periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml index b0890c50..292f46eb 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml @@ -3,6 +3,11 @@ old job periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml index 9caec1a5..9a9d6b02 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml @@ -3,6 +3,11 @@ job periodic-tripleo-ci-centos-7-ovb-ha-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml index 4cff1a60..3b1bff15 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml @@ -3,6 +3,11 @@ old job periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml index 0c13ec0d..0504d5c6 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-nonha-containers tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml index 5f0f4873..938585ad 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml index 06c8da46..9332d822 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml index 08d18e10..3ebfe45e 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml index 39362d82..b325cbed 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-scenario001-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml index 37c4348b..59c408ec 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-scenario002-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml index 41ba2d49..ebcd1757 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-scenario003-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml index 6a33850e..e96094a9 100644 --- a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ from old job periodic-tripleo-ci-centos-7-scenario004-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/placement-api-ref/post.yaml b/playbooks/legacy/placement-api-ref/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/placement-api-ref/post.yaml +++ b/playbooks/legacy/placement-api-ref/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/placement-api-ref/run.yaml b/playbooks/legacy/placement-api-ref/run.yaml index a8766bba..69ae7343 100644 --- a/playbooks/legacy/placement-api-ref/run.yaml +++ b/playbooks/legacy/placement-api-ref/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-placement-api-ref from old job placement-api-ref tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh placement-api-ref + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +69,5 @@ MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" echo $MARKER_TEXT > placement-api-ref/build/html/.root-marker executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/post-sahara-extra-artifacts/post.yaml b/playbooks/legacy/post-sahara-extra-artifacts/post.yaml index eb4e0120..dd1fba7c 100644 --- a/playbooks/legacy/post-sahara-extra-artifacts/post.yaml +++ b/playbooks/legacy/post-sahara-extra-artifacts/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/' mode: pull copy_links: true diff --git a/playbooks/legacy/post-sahara-extra-artifacts/run.yaml b/playbooks/legacy/post-sahara-extra-artifacts/run.yaml index fcc31acc..1a9cb968 100644 --- a/playbooks/legacy/post-sahara-extra-artifacts/run.yaml +++ b/playbooks/legacy/post-sahara-extra-artifacts/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-post-sahara-extra-artifacts from old job post-sahara-extra-artifacts tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ # tell to script where it should place dist results tools/build-all-artifacts.sh $BRANCH executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-config-jenkins-project/post.yaml b/playbooks/legacy/project-config-jenkins-project/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/project-config-jenkins-project/post.yaml +++ b/playbooks/legacy/project-config-jenkins-project/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/project-config-jenkins-project/run.yaml b/playbooks/legacy/project-config-jenkins-project/run.yaml index 8032fb10..aa9d389e 100644 --- a/playbooks/legacy/project-config-jenkins-project/run.yaml +++ b/playbooks/legacy/project-config-jenkins-project/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-project-config-jenkins-project from old job gate-project-config-jenkins-project tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jenkins-project + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-config-layout/post.yaml b/playbooks/legacy/project-config-layout/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/project-config-layout/post.yaml +++ b/playbooks/legacy/project-config-layout/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/project-config-layout/run.yaml b/playbooks/legacy/project-config-layout/run.yaml index 2184cda4..a57d147a 100644 --- a/playbooks/legacy/project-config-layout/run.yaml +++ b/playbooks/legacy/project-config-layout/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-project-config-layout from old job gate-project-config-layout tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh zuul + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-navigator-data-tox-validate/post.yaml b/playbooks/legacy/project-navigator-data-tox-validate/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/project-navigator-data-tox-validate/post.yaml +++ b/playbooks/legacy/project-navigator-data-tox-validate/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/project-navigator-data-tox-validate/run.yaml b/playbooks/legacy/project-navigator-data-tox-validate/run.yaml index d90de934..d02d5f4b 100644 --- a/playbooks/legacy/project-navigator-data-tox-validate/run.yaml +++ b/playbooks/legacy/project-navigator-data-tox-validate/run.yaml @@ -3,6 +3,11 @@ gate-project-navigator-data-tox-validate-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-team-guide-publish/run.yaml b/playbooks/legacy/project-team-guide-publish/run.yaml index 980350d9..169e6ef5 100644 --- a/playbooks/legacy/project-team-guide-publish/run.yaml +++ b/playbooks/legacy/project-team-guide-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-project-team-guide-publish from old job project-team-guide-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-requirements-constraints-master/run.yaml b/playbooks/legacy/propose-requirements-constraints-master/run.yaml index 94d412d9..939c00e1 100644 --- a/playbooks/legacy/propose-requirements-constraints-master/run.yaml +++ b/playbooks/legacy/propose-requirements-constraints-master/run.yaml @@ -3,6 +3,11 @@ job propose-requirements-constraints-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -10,6 +15,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -19,6 +25,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ --branch=$BRANCH \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +56,5 @@ export ZUUL_REFNAME=master /usr/local/jenkins/slave_scripts/propose_update.sh \ requirements-constraints + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update-ocata/post.yaml b/playbooks/legacy/propose-translation-update-ocata/post.yaml index 3a9a82f1..89ec2c2f 100644 --- a/playbooks/legacy/propose-translation-update-ocata/post.yaml +++ b/playbooks/legacy/propose-translation-update-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/propose-translation-update-ocata/run.yaml b/playbooks/legacy/propose-translation-update-ocata/run.yaml index d9e4e4c9..07978455 100644 --- a/playbooks/legacy/propose-translation-update-ocata/run.yaml +++ b/playbooks/legacy/propose-translation-update-ocata/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-propose-translation-update-ocata from old job {name}-propose-translation-update-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -9,6 +14,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,6 +24,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +70,5 @@ set -x /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME stable/ocata {name}-propose-translation-update{suffix} executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update-pike/post.yaml b/playbooks/legacy/propose-translation-update-pike/post.yaml index 3a9a82f1..89ec2c2f 100644 --- a/playbooks/legacy/propose-translation-update-pike/post.yaml +++ b/playbooks/legacy/propose-translation-update-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/propose-translation-update-pike/run.yaml b/playbooks/legacy/propose-translation-update-pike/run.yaml index 4e39f6ec..5adda88d 100644 --- a/playbooks/legacy/propose-translation-update-pike/run.yaml +++ b/playbooks/legacy/propose-translation-update-pike/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-propose-translation-update-pike from old job {name}-propose-translation-update-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -9,6 +14,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,6 +24,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +70,5 @@ set -x /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME stable/pike {name}-propose-translation-update{suffix} executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update/post.yaml b/playbooks/legacy/propose-translation-update/post.yaml index 3a9a82f1..89ec2c2f 100644 --- a/playbooks/legacy/propose-translation-update/post.yaml +++ b/playbooks/legacy/propose-translation-update/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/propose-translation-update/run.yaml b/playbooks/legacy/propose-translation-update/run.yaml index 12b29233..2ba17165 100644 --- a/playbooks/legacy/propose-translation-update/run.yaml +++ b/playbooks/legacy/propose-translation-update/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-propose-translation-update from old job {name}-propose-translation-update tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -9,6 +14,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,6 +24,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +70,5 @@ set -x /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME master {name}-propose-translation-update{suffix} executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-update-constraints/post.yaml b/playbooks/legacy/propose-update-constraints/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/propose-update-constraints/post.yaml +++ b/playbooks/legacy/propose-update-constraints/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/propose-update-constraints/run.yaml b/playbooks/legacy/propose-update-constraints/run.yaml index 9aa79697..051b617d 100644 --- a/playbooks/legacy/propose-update-constraints/run.yaml +++ b/playbooks/legacy/propose-update-constraints/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-propose-update-constraints from old job propose-{name}-update-constraints tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +56,5 @@ /usr/local/jenkins/slave_scripts/release-tools/update_constraints.sh $VERSION executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml index c6da5f0b..e7784357 100644 --- a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' mode: pull copy_links: true diff --git a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml index d285a1e3..3d5184c6 100644 --- a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/publisher.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml index f7bf43a5..59f96a0a 100644 --- a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' mode: pull copy_links: true diff --git a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml index 15032a2a..81c5f990 100644 --- a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml @@ -3,6 +3,11 @@ publish-kolla-dsvm-build-ubuntu-source-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ tools/publisher.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml index c6da5f0b..e7784357 100644 --- a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' mode: pull copy_links: true diff --git a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml index 16d1a978..11f9a97d 100644 --- a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -3,6 +3,11 @@ from old job publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ tools/publisher.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml index f7bf43a5..59f96a0a 100644 --- a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -20,9 +20,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' mode: pull copy_links: true diff --git a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml index 0ad71560..2dc71552 100644 --- a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml +++ b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml @@ -3,6 +3,11 @@ publish-kolla-dsvm-save-ubuntu-source-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ tools/publisher.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml +++ b/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml index dc625cec..d76d4844 100644 --- a/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml +++ b/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-beaker-rspec-centos-7 from old job gate-{name}-puppet-beaker-rspec-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,10 +64,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,6 +88,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,6 +109,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +129,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml index 83d61b96..951f0831 100644 --- a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-beaker-rspec-ubuntu-trusty from old job gate-{name}-puppet-beaker-rspec-ubuntu-trusty-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,10 +64,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,6 +88,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,6 +109,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +129,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-beaker-rspec/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-beaker-rspec/post.yaml +++ b/playbooks/legacy/puppet-beaker-rspec/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-beaker-rspec/run.yaml index 57ee368d..f47f53e0 100644 --- a/playbooks/legacy/puppet-beaker-rspec/run.yaml +++ b/playbooks/legacy/puppet-beaker-rspec/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-beaker-rspec from old job gate-{name}-puppet-beaker-rspec-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,10 +64,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,6 +88,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,6 +109,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +129,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-httpd-forge-upload/run.yaml b/playbooks/legacy/puppet-httpd-forge-upload/run.yaml index 328b8a70..1a299fb0 100644 --- a/playbooks/legacy/puppet-httpd-forge-upload/run.yaml +++ b/playbooks/legacy/puppet-httpd-forge-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-httpd-forge-upload from old job puppet-httpd-forge-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -9,6 +14,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ gem install --no-ri --no-rdoc puppetlabs_spec_helper puppet-blacksmith rake module:push executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-lint/run.yaml b/playbooks/legacy/puppet-lint/run.yaml index ce6460c0..e0d14806 100644 --- a/playbooks/legacy/puppet-lint/run.yaml +++ b/playbooks/legacy/puppet-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-lint from old job gate-{name}-puppet-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +98,5 @@ gem install puppetlabs_spec_helper ./.bundled_gems/rake lint 2>&1 fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml index 08772beb..11d55940 100644 --- a/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml +++ b/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-midonet-puppet-unit-3.6-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml index 4aaa1966..cc30eb44 100644 --- a/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml +++ b/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-midonet-puppet-unit-3.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml index 50651bb4..9694e957 100644 --- a/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml +++ b/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-midonet-puppet-unit-4.5-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml index 16ccd0be..440d4d95 100644 --- a/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-midonet-puppet-unit-latest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-module-build/run.yaml b/playbooks/legacy/puppet-module-build/run.yaml index f82f3732..1d178960 100644 --- a/playbooks/legacy/puppet-module-build/run.yaml +++ b/playbooks/legacy/puppet-module-build/run.yaml @@ -2,15 +2,22 @@ name: Autoconverted job legacy-puppet-module-build from old job gate-{name}-puppet-module-build tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +35,7 @@ rm -rf /tmp/puppet.deb fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +45,5 @@ cd $ZUUL_PROJECT puppet module build . executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml +++ b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml index e3f2a589..f7f199be 100644 --- a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml +++ b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-murano-puppet-beaker-rspec from old job gate-puppet-murano-puppet-beaker-rspec-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,10 +64,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,6 +88,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,6 +109,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -119,4 +129,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml index 46fba85f..c88e7dcf 100644 --- a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml @@ -3,15 +3,22 @@ from old job gate-puppet-openstack-infra-spec-helper-unit-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +47,5 @@ cd openstack-infra/puppet-openstack_infra_spec_helper ./run_unit_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml index 02c67d42..e9f4a7a9 100644 --- a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml @@ -3,15 +3,22 @@ from old job gate-puppet-openstack-infra-spec-helper-unit-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +47,5 @@ cd openstack-infra/puppet-openstack_infra_spec_helper ./run_unit_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml index 696529b0..81f20fe4 100644 --- a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml @@ -3,15 +3,22 @@ job gate-puppet-openstack-infra-spec-helper-unit-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +47,5 @@ cd openstack-infra/puppet-openstack_infra_spec_helper ./run_unit_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml index 6e50772e..36118aa1 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario001-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml index b4c226f7..0bde1806 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario001-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml index baba922f..acb06658 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario002-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml index b44e9c84..0b1a194a 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario002-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml index 7cda3797..a4c265ba 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario003-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml index c4799b0a..d16e5a8b 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario003-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml index a22a1ee5..1ee9b89f 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario004-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml index 463fd132..afd7b4aa 100644 --- a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-4-scenario004-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml index edd4dd72..a08920a1 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario001-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml index 32bcf67d..05f5bf95 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario001-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml index 894b44a2..d8767763 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario002-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml index 27db8dbc..dec141c9 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario002-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml index d7553e28..bf055f5d 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario003-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml index 0f6514a4..a4dd5eea 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario003-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml index 8a851e21..0cbc3711 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario004-tempest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml index c5445062..08a0a8a8 100644 --- a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-integration-5-scenario004-tempest-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ cd puppet-openstack-integration /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +65,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose ./run_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml index 8e14a470..c8fc1a86 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -31,6 +36,7 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,10 +44,12 @@ /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -80,6 +89,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -90,4 +100,5 @@ trap "../../puppet-openstack-integration/copy_logs.sh" EXIT ./run_beaker_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml index 2a5112a1..72932681 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml @@ -3,15 +3,22 @@ old job gate-puppet-openstack-libraries-puppet-lint-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +47,5 @@ cd $ZUUL_PROJECT ./run_lint_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml index 51443a90..4800f53b 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml @@ -3,15 +3,22 @@ from old job gate-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +48,5 @@ export PUPPET_VERSION="3" ./run_syntax_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml index 4af27271..e248b070 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml @@ -3,15 +3,22 @@ from old job gate-puppet-openstack-libraries-puppet-syntax-4-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,4 +48,5 @@ export PUPPET_VERSION="4" ./run_syntax_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml index e0b18db9..c5b93a38 100644 --- a/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml @@ -3,15 +3,22 @@ old job gate-puppet-openstack-libraries-puppet-unit-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +37,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +47,5 @@ cd $ZUUL_PROJECT ./run_unit_tests.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml index 3b309177..5796d266 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-puppet-openstackci-puppet-beaker-rspec-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,10 +65,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -81,6 +89,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -101,6 +110,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -120,4 +130,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml index eb843e97..c3701d5d 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ from old job gate-puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,10 +65,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -81,6 +89,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -101,6 +110,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -120,4 +130,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml index 427fa495..6d714c2a 100644 --- a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml @@ -3,6 +3,11 @@ gate-puppet-openstackci-puppet-beaker-rspec-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,6 +34,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,10 +65,12 @@ --zuul-branch $ZUUL_BRANCH_REAL \ git://git.openstack.org openstack/puppet-openstack-integration executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -81,6 +89,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -101,6 +110,7 @@ sudo service ssh restart fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -120,4 +130,5 @@ export PUPPET_MAJ_VERSION=4 fi $GEM_HOME/bin/bundle exec rspec spec/acceptance + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml b/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml index 2f07989b..883c14a0 100644 --- a/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml +++ b/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-storyboard-forge-upload from old job puppet-storyboard-forge-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -9,6 +14,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ gem install --no-ri --no-rdoc puppetlabs_spec_helper puppet-blacksmith rake module:push executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml b/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml index 172e807f..365615fd 100644 --- a/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml +++ b/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-syntax-3-legacy-centos-7 from old job gate-{name}-puppet-syntax-3-legacy-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +82,5 @@ export FUTURE_PARSER=yes fi $GEM_HOME/bin/bundle exec rake syntax + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-3/run.yaml b/playbooks/legacy/puppet-syntax-3/run.yaml index 5993a550..947d0a1c 100644 --- a/playbooks/legacy/puppet-syntax-3/run.yaml +++ b/playbooks/legacy/puppet-syntax-3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-syntax-3 from old job gate-{name}-puppet-syntax-3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +82,5 @@ export FUTURE_PARSER=yes fi $GEM_HOME/bin/bundle exec rake syntax + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml b/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml index 3b5fe6ed..33e8cda0 100644 --- a/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml +++ b/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-syntax-4-centos-7 from old job gate-{name}-puppet-syntax-4-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +82,5 @@ export FUTURE_PARSER=yes fi $GEM_HOME/bin/bundle exec rake syntax + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml b/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml index 0d9d20db..89413c56 100644 --- a/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml +++ b/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-tripleo-puppet-unit-4.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml index 5fff4a2b..ec3cb44d 100644 --- a/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-puppet-tripleo-puppet-unit-latest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,6 +58,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,6 +68,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +81,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml b/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml index a3f2f584..3c1733f0 100644 --- a/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml +++ b/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-unit-3.6-legacy-centos-7 from old job gate-{name}-puppet-unit-3.6-legacy-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +80,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml index e23a52af..e3ff4f07 100644 --- a/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml +++ b/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-unit-3.8-legacy-centos-7 from old job gate-{name}-puppet-unit-3.8-legacy-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +80,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml b/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml index 9bb0135c..1b40046f 100644 --- a/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml +++ b/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-unit-4.8-centos-7 from old job gate-{name}-puppet-unit-4.8-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +80,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml index bf035ec5..3ea41445 100644 --- a/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml +++ b/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-puppet-unit-latest-centos-7 from old job gate-{name}-puppet-unit-latest-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +80,5 @@ gem install bundler --no-rdoc --no-ri --verbose $GEM_HOME/bin/bundle install --retry 3 $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pyeclib-python35/post.yaml b/playbooks/legacy/pyeclib-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/pyeclib-python35/post.yaml +++ b/playbooks/legacy/pyeclib-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/pyeclib-python35/run.yaml b/playbooks/legacy/pyeclib-python35/run.yaml index c744fd75..ab300ffa 100644 --- a/playbooks/legacy/pyeclib-python35/run.yaml +++ b/playbooks/legacy/pyeclib-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-pyeclib-python35 from old job gate-pyeclib-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml b/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml +++ b/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml b/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml index 7fc79715..34822699 100644 --- a/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml +++ b/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-pyeclib-tox-py27-centos-7 from old job gate-pyeclib-tox-py27-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pypi-both-upload/run.yaml b/playbooks/legacy/pypi-both-upload/run.yaml index bbdbc40e..e9bec84e 100644 --- a/playbooks/legacy/pypi-both-upload/run.yaml +++ b/playbooks/legacy/pypi-both-upload/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-pypi-both-upload from old job {name}-pypi-both-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -9,6 +14,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,6 +43,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +54,5 @@ # wheels it is best to make the wheel the one we get. /usr/local/jenkins/slave_scripts/pypi-wheel-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org /usr/local/jenkins/slave_scripts/pypi-tarball-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-barbicanclient-devstack/post.yaml b/playbooks/legacy/python-barbicanclient-devstack/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/python-barbicanclient-devstack/post.yaml +++ b/playbooks/legacy/python-barbicanclient-devstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/python-barbicanclient-devstack/run.yaml b/playbooks/legacy/python-barbicanclient-devstack/run.yaml index 01fac9d2..f7319eb3 100644 --- a/playbooks/legacy/python-barbicanclient-devstack/run.yaml +++ b/playbooks/legacy/python-barbicanclient-devstack/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-barbicanclient-devstack from old job gate-python-barbicanclient-devstack-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +47,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-barbicanclient-dsvm/post.yaml b/playbooks/legacy/python-barbicanclient-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/python-barbicanclient-dsvm/post.yaml +++ b/playbooks/legacy/python-barbicanclient-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/python-barbicanclient-dsvm/run.yaml b/playbooks/legacy/python-barbicanclient-dsvm/run.yaml index 8b7d18d7..912d64ca 100644 --- a/playbooks/legacy/python-barbicanclient-dsvm/run.yaml +++ b/playbooks/legacy/python-barbicanclient-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-barbicanclient-dsvm from old job gate-python-barbicanclient-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-cinderclient-pylint/post.yaml b/playbooks/legacy/python-cinderclient-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python-cinderclient-pylint/post.yaml +++ b/playbooks/legacy/python-cinderclient-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python-cinderclient-pylint/run.yaml b/playbooks/legacy/python-cinderclient-pylint/run.yaml index 282ea287..85183f82 100644 --- a/playbooks/legacy/python-cinderclient-pylint/run.yaml +++ b/playbooks/legacy/python-cinderclient-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-cinderclient-pylint from old job gate-python-cinderclient-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-freezerclient-pylint/post.yaml b/playbooks/legacy/python-freezerclient-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python-freezerclient-pylint/post.yaml +++ b/playbooks/legacy/python-freezerclient-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python-freezerclient-pylint/run.yaml b/playbooks/legacy/python-freezerclient-pylint/run.yaml index 0d6310e2..5b94e373 100644 --- a/playbooks/legacy/python-freezerclient-pylint/run.yaml +++ b/playbooks/legacy/python-freezerclient-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-freezerclient-pylint from old job gate-python-freezerclient-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml b/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml +++ b/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml b/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml index 2087c0bf..cde0883c 100644 --- a/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml +++ b/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml @@ -3,6 +3,11 @@ job gate-python-ironic-inspector-client-tox-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml index 5200a697..08ab8dfc 100644 --- a/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-mistralclient-devstack-dsvm from old job gate-python-mistralclient-devstack-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-openstacksdk-docs/post.yaml b/playbooks/legacy/python-openstacksdk-docs/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python-openstacksdk-docs/post.yaml +++ b/playbooks/legacy/python-openstacksdk-docs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python-openstacksdk-docs/run.yaml b/playbooks/legacy/python-openstacksdk-docs/run.yaml index 66e32f8e..00c04fbd 100644 --- a/playbooks/legacy/python-openstacksdk-docs/run.yaml +++ b/playbooks/legacy/python-openstacksdk-docs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python-openstacksdk-docs from old job python-openstacksdk-docs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml b/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml +++ b/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml b/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml index 5d053090..86c91d72 100644 --- a/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml +++ b/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml @@ -3,6 +3,11 @@ gate-python-swiftclient-python36-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py36 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python34/post.yaml b/playbooks/legacy/python34/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python34/post.yaml +++ b/playbooks/legacy/python34/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python34/run.yaml b/playbooks/legacy/python34/run.yaml index 7092a692..6be1fb70 100644 --- a/playbooks/legacy/python34/run.yaml +++ b/playbooks/legacy/python34/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python34 from old job gate-{name}-python34 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py34 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python35/post.yaml b/playbooks/legacy/python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/python35/post.yaml +++ b/playbooks/legacy/python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/python35/run.yaml b/playbooks/legacy/python35/run.yaml index c1daa23f..7a14d23d 100644 --- a/playbooks/legacy/python35/run.yaml +++ b/playbooks/legacy/python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-python35 from old job gate-{name}-python35-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/qinling-dsvm-tempest/post.yaml b/playbooks/legacy/qinling-dsvm-tempest/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/qinling-dsvm-tempest/post.yaml +++ b/playbooks/legacy/qinling-dsvm-tempest/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/qinling-dsvm-tempest/run.yaml b/playbooks/legacy/qinling-dsvm-tempest/run.yaml index fff5df3b..b2b1393d 100644 --- a/playbooks/legacy/qinling-dsvm-tempest/run.yaml +++ b/playbooks/legacy/qinling-dsvm-tempest/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-qinling-dsvm-tempest from old job gate-qinling-dsvm-tempest-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +48,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml index 72e84d15..c5a177bb 100644 --- a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml +++ b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml index b45a7a90..3ee44330 100644 --- a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml +++ b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-certification-with-keystone-v3-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ export -f post_test_hook cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cinder/post.yaml b/playbooks/legacy/rally-dsvm-cinder/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-cinder/post.yaml +++ b/playbooks/legacy/rally-dsvm-cinder/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-cinder/run.yaml b/playbooks/legacy/rally-dsvm-cinder/run.yaml index 61c0c135..adccceea 100644 --- a/playbooks/legacy/rally-dsvm-cinder/run.yaml +++ b/playbooks/legacy/rally-dsvm-cinder/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-cinder from old job gate-rally-dsvm-cinder-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cli/post.yaml b/playbooks/legacy/rally-dsvm-cli/post.yaml index c40e62f5..76b9c4b2 100644 --- a/playbooks/legacy/rally-dsvm-cli/post.yaml +++ b/playbooks/legacy/rally-dsvm-cli/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-cli/run.yaml b/playbooks/legacy/rally-dsvm-cli/run.yaml index 51f710cc..ab2d4f17 100644 --- a/playbooks/legacy/rally-dsvm-cli/run.yaml +++ b/playbooks/legacy/rally-dsvm-cli/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-cli from old job gate-rally-dsvm-cli tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ export -f post_test_hook cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml b/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml +++ b/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml b/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml index 0cabe63c..93737da5 100644 --- a/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml +++ b/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-cue-rabbitmq from old job gate-rally-dsvm-cue-rabbitmq-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml +++ b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml index 2fb89a0c..0b4366ce 100644 --- a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml +++ b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml @@ -3,6 +3,11 @@ gate-rally-dsvm-designate-designate-pdns4-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml +++ b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml index 280d5f10..77ec7476 100644 --- a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml +++ b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-designate-rally-pdns4 from old job gate-rally-dsvm-designate-rally-pdns4-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml +++ b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml index 80e5963f..b52f1833 100644 --- a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml +++ b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-fakevirt-ceilometer from old job gate-rally-dsvm-fakevirt-ceilometer-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml b/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml +++ b/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml b/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml index f255d8a2..61b18c11 100644 --- a/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml +++ b/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-fakevirt-heat from old job gate-rally-dsvm-fakevirt-heat-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-glance/post.yaml b/playbooks/legacy/rally-dsvm-glance/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-glance/post.yaml +++ b/playbooks/legacy/rally-dsvm-glance/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-glance/run.yaml b/playbooks/legacy/rally-dsvm-glance/run.yaml index d5ebbf5c..b4e259bf 100644 --- a/playbooks/legacy/rally-dsvm-glance/run.yaml +++ b/playbooks/legacy/rally-dsvm-glance/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-glance from old job gate-rally-dsvm-glance-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml b/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml b/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml index 77cd2480..623f4069 100644 --- a/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-ironic-rally from old job gate-rally-dsvm-ironic-rally-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml index 221d6222..4dc62cd3 100644 --- a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-keystone-v2api-rally from old job gate-rally-dsvm-keystone-v2api-rally tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-keystone/post.yaml b/playbooks/legacy/rally-dsvm-keystone/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-keystone/post.yaml +++ b/playbooks/legacy/rally-dsvm-keystone/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-keystone/run.yaml b/playbooks/legacy/rally-dsvm-keystone/run.yaml index 9f386cc3..2df99cd8 100644 --- a/playbooks/legacy/rally-dsvm-keystone/run.yaml +++ b/playbooks/legacy/rally-dsvm-keystone/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-keystone from old job gate-rally-dsvm-keystone-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml b/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml b/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml index d764dc79..07971c2a 100644 --- a/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-magnum-rally from old job gate-rally-dsvm-magnum-rally-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml index d51dddba..8561abb1 100644 --- a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml @@ -3,6 +3,11 @@ gate-rally-dsvm-manila-multibackend-no-ss tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -75,4 +82,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml index b364868c..6b250cff 100644 --- a/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-manila-multibackend from old job gate-rally-dsvm-manila-multibackend tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml b/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml b/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml index c710d3ef..6af0ddeb 100644 --- a/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-mistral-rally from old job gate-rally-dsvm-mistral-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-mistral-task/post.yaml b/playbooks/legacy/rally-dsvm-mistral-task/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-mistral-task/post.yaml +++ b/playbooks/legacy/rally-dsvm-mistral-task/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-mistral-task/run.yaml b/playbooks/legacy/rally-dsvm-mistral-task/run.yaml index 8d0adf2b..bea5c2ad 100644 --- a/playbooks/legacy/rally-dsvm-mistral-task/run.yaml +++ b/playbooks/legacy/rally-dsvm-mistral-task/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-mistral-task from old job gate-rally-dsvm-mistral-task-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml b/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml b/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml index 074f0b6a..7998ac68 100644 --- a/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-monasca-rally from old job gate-rally-dsvm-monasca-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-murano-rally/post.yaml b/playbooks/legacy/rally-dsvm-murano-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-murano-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-murano-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-murano-rally/run.yaml b/playbooks/legacy/rally-dsvm-murano-rally/run.yaml index 077890fe..9e3dfa9f 100644 --- a/playbooks/legacy/rally-dsvm-murano-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-murano-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-murano-rally from old job gate-rally-dsvm-murano-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-murano-task/post.yaml b/playbooks/legacy/rally-dsvm-murano-task/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-murano-task/post.yaml +++ b/playbooks/legacy/rally-dsvm-murano-task/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-murano-task/run.yaml b/playbooks/legacy/rally-dsvm-murano-task/run.yaml index c8661c83..ff5012e9 100644 --- a/playbooks/legacy/rally-dsvm-murano-task/run.yaml +++ b/playbooks/legacy/rally-dsvm-murano-task/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-murano-task from old job gate-rally-dsvm-murano-task-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml +++ b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml index 6ec253c6..67b0f161 100644 --- a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml +++ b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-networking-odl-carbon-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml +++ b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml index efd23b13..57cc5ef4 100644 --- a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml +++ b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml @@ -3,6 +3,11 @@ old job gate-rally-dsvm-networking-odl-nitrogen-snapshot tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml b/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml index 86dc5ca5..917fe990 100644 --- a/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml +++ b/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -92,9 +92,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml b/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml index e8aa4372..b5765b17 100644 --- a/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml +++ b/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-networking-ovn from old job gate-rally-dsvm-networking-ovn tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml index 5f2bc5bf..e596adfd 100644 --- a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-neutron-existing-users-rally tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -166,4 +172,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml index f001e932..468e6396 100644 --- a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml @@ -3,6 +3,11 @@ gate-rally-dsvm-neutron-extensions-rally-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -166,4 +172,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml b/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml b/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml index 7ba98e16..2335b48b 100644 --- a/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-neutron-neutron from old job gate-rally-dsvm-neutron-neutron-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml index 91886f7a..d720eb50 100644 --- a/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-neutron-rally from old job gate-rally-dsvm-neutron-rally-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml b/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml b/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml index 6c4aa25f..eb4dfd3a 100644 --- a/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml +++ b/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-neutron-telemetry from old job gate-rally-dsvm-neutron-telemetry-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml b/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml +++ b/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml b/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml index de6a46cb..5449df93 100644 --- a/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml +++ b/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-py35-cinder from old job gate-rally-dsvm-py35-cinder-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-glance/post.yaml b/playbooks/legacy/rally-dsvm-py35-glance/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-py35-glance/post.yaml +++ b/playbooks/legacy/rally-dsvm-py35-glance/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-py35-glance/run.yaml b/playbooks/legacy/rally-dsvm-py35-glance/run.yaml index 7b7b4c0d..3c6f1783 100644 --- a/playbooks/legacy/rally-dsvm-py35-glance/run.yaml +++ b/playbooks/legacy/rally-dsvm-py35-glance/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-py35-glance from old job gate-rally-dsvm-py35-glance-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml +++ b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml index afe3f245..296bc628 100644 --- a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml +++ b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-py35-neutron-neutron from old job gate-rally-dsvm-py35-neutron-neutron-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml b/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml +++ b/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml b/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml index 70abb587..7c123ce3 100644 --- a/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml +++ b/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-py35-rally-nova from old job gate-rally-dsvm-py35-rally-nova-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml b/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml +++ b/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml b/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml index 75f198f5..55444d22 100644 --- a/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml +++ b/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-rally-cinder from old job gate-rally-dsvm-rally-cinder tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-heat/post.yaml b/playbooks/legacy/rally-dsvm-rally-heat/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-rally-heat/post.yaml +++ b/playbooks/legacy/rally-dsvm-rally-heat/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-rally-heat/run.yaml b/playbooks/legacy/rally-dsvm-rally-heat/run.yaml index 24063dbe..decf96f8 100644 --- a/playbooks/legacy/rally-dsvm-rally-heat/run.yaml +++ b/playbooks/legacy/rally-dsvm-rally-heat/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-rally-heat from old job gate-rally-dsvm-rally-heat-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-nova/post.yaml b/playbooks/legacy/rally-dsvm-rally-nova/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-rally-nova/post.yaml +++ b/playbooks/legacy/rally-dsvm-rally-nova/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-rally-nova/run.yaml b/playbooks/legacy/rally-dsvm-rally-nova/run.yaml index b6f69a89..a6c46741 100644 --- a/playbooks/legacy/rally-dsvm-rally-nova/run.yaml +++ b/playbooks/legacy/rally-dsvm-rally-nova/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-rally-nova from old job gate-rally-dsvm-rally-nova-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally/post.yaml b/playbooks/legacy/rally-dsvm-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-rally/run.yaml b/playbooks/legacy/rally-dsvm-rally/run.yaml index b4d04f8f..c74dc0ce 100644 --- a/playbooks/legacy/rally-dsvm-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-rally from old job gate-rally-dsvm-rally-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml b/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml b/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml index 22eac1ed..971fc1cc 100644 --- a/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-senlin-rally from old job gate-rally-dsvm-senlin-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml b/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml +++ b/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml b/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml index dfdd655c..e988151d 100644 --- a/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml +++ b/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-senlin-senlin from old job gate-rally-dsvm-senlin-senlin-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml index e257b8ea..7d305f88 100644 --- a/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml +++ b/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml index ac212116..cf589f6e 100644 --- a/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml +++ b/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-verify-full-create-resources-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml index e257b8ea..7d305f88 100644 --- a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml +++ b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml index bf9cb25f..393f9fb4 100644 --- a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml +++ b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-verify-full-discover-resources tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml index e257b8ea..7d305f88 100644 --- a/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml +++ b/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml index 770797eb..2a65a4cf 100644 --- a/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml +++ b/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-verify-light-create-resources-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml index e257b8ea..7d305f88 100644 --- a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml +++ b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml index 70962b0a..ebbac403 100644 --- a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml +++ b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml @@ -3,6 +3,11 @@ job gate-rally-dsvm-verify-light-discover-resources tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml b/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml b/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml index 33abfc46..8951dcef 100644 --- a/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-watcher-rally from old job gate-rally-dsvm-watcher-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml b/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml +++ b/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml b/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml index da14bf09..f85413d2 100644 --- a/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml +++ b/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-watcher-watcher from old job gate-rally-dsvm-watcher-watcher-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml b/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml +++ b/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml b/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml index 0c480471..c9b0f80d 100644 --- a/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml +++ b/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-zaqar-rally from old job gate-rally-dsvm-zaqar-rally-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml b/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml index 9a2e75fd..aebee6d2 100644 --- a/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml +++ b/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml b/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml index 976d9fad..9da03dce 100644 --- a/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml +++ b/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-dsvm-zaqar-zaqar from old job gate-rally-dsvm-zaqar-zaqar-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -165,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-install-centos-7/run.yaml b/playbooks/legacy/rally-install-centos-7/run.yaml index 5afc1166..0cd6ac5d 100644 --- a/playbooks/legacy/rally-install-centos-7/run.yaml +++ b/playbooks/legacy/rally-install-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-install-centos-7 from old job gate-rally-install-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,12 +33,15 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: tests/ci/test_install.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-install/run.yaml b/playbooks/legacy/rally-install/run.yaml index 17b39af2..0ce92d57 100644 --- a/playbooks/legacy/rally-install/run.yaml +++ b/playbooks/legacy/rally-install/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-install from old job gate-rally-install-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,12 +33,15 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: tests/ci/test_install.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-tox-self/post.yaml b/playbooks/legacy/rally-tox-self/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/rally-tox-self/post.yaml +++ b/playbooks/legacy/rally-tox-self/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/rally-tox-self/run.yaml b/playbooks/legacy/rally-tox-self/run.yaml index 1d5e1d11..89d5d832 100644 --- a/playbooks/legacy/rally-tox-self/run.yaml +++ b/playbooks/legacy/rally-tox-self/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rally-tox-self from old job gate-rally-tox-self-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh self + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml b/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml +++ b/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml b/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml index 5408a5ef..8d5bae6e 100644 --- a/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml +++ b/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-refstack-tox-py27-func-mysql from old job gate-refstack-tox-py27-func-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml b/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml +++ b/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml b/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml index ebd70692..97a09761 100644 --- a/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml +++ b/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-refstack-tox-py35-func-mysql from old job gate-refstack-tox-py35-func-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releasenotes/run.yaml b/playbooks/legacy/releasenotes/run.yaml index a8b35876..5bbf0cbc 100644 --- a/playbooks/legacy/releasenotes/run.yaml +++ b/playbooks/legacy/releasenotes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-releasenotes from old job gate-{name}-releasenotes tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,6 +54,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -189,4 +197,5 @@ # Revert any changes to the index file. git checkout -- ${DIRECTORY}/source/index.rst executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-python35/post.yaml b/playbooks/legacy/releases-python35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/releases-python35/post.yaml +++ b/playbooks/legacy/releases-python35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/releases-python35/run.yaml b/playbooks/legacy/releases-python35/run.yaml index b126ca54..de92fd33 100644 --- a/playbooks/legacy/releases-python35/run.yaml +++ b/playbooks/legacy/releases-python35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-releases-python35 from old job gate-releases-python35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-tox-list-changes/post.yaml b/playbooks/legacy/releases-tox-list-changes/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/releases-tox-list-changes/post.yaml +++ b/playbooks/legacy/releases-tox-list-changes/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/releases-tox-list-changes/run.yaml b/playbooks/legacy/releases-tox-list-changes/run.yaml index 567d2ebd..78d88ff7 100644 --- a/playbooks/legacy/releases-tox-list-changes/run.yaml +++ b/playbooks/legacy/releases-tox-list-changes/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-releases-tox-list-changes from old job gate-releases-tox-list-changes-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh list-changes + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-tox-validate/post.yaml b/playbooks/legacy/releases-tox-validate/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/releases-tox-validate/post.yaml +++ b/playbooks/legacy/releases-tox-validate/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/releases-tox-validate/run.yaml b/playbooks/legacy/releases-tox-validate/run.yaml index 4426339e..49f49c4d 100644 --- a/playbooks/legacy/releases-tox-validate/run.yaml +++ b/playbooks/legacy/releases-tox-validate/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-releases-tox-validate from old job gate-releases-tox-validate-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml +++ b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml index ce3c4c70..10eaf3d6 100644 --- a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml +++ b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml @@ -3,6 +3,11 @@ gate-requests-mock-tox-keystoneclient-tip-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,6 +53,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +63,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh keystoneclient-tip + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +83,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml b/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml +++ b/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml b/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml index 3042ca1c..d0c44b14 100644 --- a/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml +++ b/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requests-mock-tox-novaclient-tip from old job gate-requests-mock-tox-novaclient-tip-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh novaclient-tip + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml index 6f54d487..3a1f16ee 100644 --- a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ old job gate-requirements-integration-dsvm-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -129,4 +135,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-integration-dsvm/post.yaml b/playbooks/legacy/requirements-integration-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/requirements-integration-dsvm/post.yaml +++ b/playbooks/legacy/requirements-integration-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-integration-dsvm/run.yaml b/playbooks/legacy/requirements-integration-dsvm/run.yaml index 897bbbbc..5d9cc06f 100644 --- a/playbooks/legacy/requirements-integration-dsvm/run.yaml +++ b/playbooks/legacy/requirements-integration-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-integration-dsvm from old job gate-requirements-integration-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -128,4 +134,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-python34/post.yaml b/playbooks/legacy/requirements-python34/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-python34/post.yaml +++ b/playbooks/legacy/requirements-python34/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-python34/run.yaml b/playbooks/legacy/requirements-python34/run.yaml index f2e36c5a..ebbecd7b 100644 --- a/playbooks/legacy/requirements-python34/run.yaml +++ b/playbooks/legacy/requirements-python34/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-python34 from old job gate-requirements-python34 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py34 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-babel/post.yaml b/playbooks/legacy/requirements-tox-babel/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-tox-babel/post.yaml +++ b/playbooks/legacy/requirements-tox-babel/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-tox-babel/run.yaml b/playbooks/legacy/requirements-tox-babel/run.yaml index 85a5696c..e027bf06 100644 --- a/playbooks/legacy/requirements-tox-babel/run.yaml +++ b/playbooks/legacy/requirements-tox-babel/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-tox-babel from old job gate-requirements-tox-babel-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh babel + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml b/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml +++ b/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml b/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml index faf96887..20ccf8d3 100644 --- a/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml +++ b/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-tox-py27-check-uc from old job gate-requirements-tox-py27-check-uc-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-check-uc + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml b/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml +++ b/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml b/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml index 62209790..a8aec65f 100644 --- a/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml +++ b/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-tox-py35-check-uc from old job gate-requirements-tox-py35-check-uc-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-check-uc + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-validate-projects/post.yaml b/playbooks/legacy/requirements-tox-validate-projects/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-tox-validate-projects/post.yaml +++ b/playbooks/legacy/requirements-tox-validate-projects/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-tox-validate-projects/run.yaml b/playbooks/legacy/requirements-tox-validate-projects/run.yaml index 425a12d2..9fbb4dd6 100644 --- a/playbooks/legacy/requirements-tox-validate-projects/run.yaml +++ b/playbooks/legacy/requirements-tox-validate-projects/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-tox-validate-projects from old job gate-requirements-tox-validate-projects-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate-projects + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-validate/post.yaml b/playbooks/legacy/requirements-tox-validate/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements-tox-validate/post.yaml +++ b/playbooks/legacy/requirements-tox-validate/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements-tox-validate/run.yaml b/playbooks/legacy/requirements-tox-validate/run.yaml index 4a0fee18..cdeff4ad 100644 --- a/playbooks/legacy/requirements-tox-validate/run.yaml +++ b/playbooks/legacy/requirements-tox-validate/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements-tox-validate from old job gate-requirements-tox-validate-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements/post.yaml b/playbooks/legacy/requirements/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/requirements/post.yaml +++ b/playbooks/legacy/requirements/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/requirements/run.yaml b/playbooks/legacy/requirements/run.yaml index 279bee9a..3a53c6c7 100644 --- a/playbooks/legacy/requirements/run.yaml +++ b/playbooks/legacy/requirements/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-requirements from old job gate-{name}-requirements tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +57,5 @@ set -x /usr/local/jenkins/slave_scripts/project-requirements-change.py $ZUUL_BRANCH executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rpm-packaging-tox-lint/post.yaml b/playbooks/legacy/rpm-packaging-tox-lint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/rpm-packaging-tox-lint/post.yaml +++ b/playbooks/legacy/rpm-packaging-tox-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/rpm-packaging-tox-lint/run.yaml b/playbooks/legacy/rpm-packaging-tox-lint/run.yaml index 08b2d3c5..0a1ed0c9 100644 --- a/playbooks/legacy/rpm-packaging-tox-lint/run.yaml +++ b/playbooks/legacy/rpm-packaging-tox-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-rpm-packaging-tox-lint from old job gate-rpm-packaging-tox-lint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh lint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml b/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml index 774ce241..018774df 100644 --- a/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml +++ b/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-buildimages-ambari-centos-7 from old job gate-sahara-buildimages-ambari-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +50,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images ambari executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml b/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml index 8b883c29..e9517f26 100644 --- a/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml +++ b/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml @@ -3,6 +3,11 @@ gate-sahara-buildimages-cloudera-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images cloudera executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-cli/post.yaml b/playbooks/legacy/sahara-cli/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/sahara-cli/post.yaml +++ b/playbooks/legacy/sahara-cli/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-cli/run.yaml b/playbooks/legacy/sahara-cli/run.yaml index a092c987..dd7efce8 100644 --- a/playbooks/legacy/sahara-cli/run.yaml +++ b/playbooks/legacy/sahara-cli/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-cli from old job gate-sahara-cli-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml b/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml +++ b/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml b/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml index fbe32ed3..a0fbf749 100644 --- a/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml +++ b/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dashboard-dsvm-integration from old job gate-sahara-dashboard-dsvm-integration-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,18 +20,21 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +49,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml index 4de1f312..e2fb7864 100644 --- a/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dashboard-tox-py27dj110 from old job gate-sahara-dashboard-tox-py27dj110-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml index e2692065..9553ac74 100644 --- a/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dashboard-tox-py27dj19 from old job gate-sahara-dashboard-tox-py27dj19-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml index 907b1edf..7ca641e3 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dsvm-scenario-mod-wsgi from old job gate-sahara-dsvm-scenario-mod-wsgi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml index b8b52f34..2d68097c 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml @@ -3,6 +3,11 @@ gate-sahara-dsvm-scenario-multinode-spark-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml index dd3550ef..fd358a0e 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dsvm-scenario-neutron from old job gate-sahara-dsvm-scenario-neutron-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml index d776b20b..0159f2aa 100644 --- a/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml +++ b/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-dsvm-scenario-py3 from old job gate-sahara-dsvm-scenario-py3-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-extra-artifacts/run.yaml b/playbooks/legacy/sahara-extra-artifacts/run.yaml index 1d7e10fa..9f2e5507 100644 --- a/playbooks/legacy/sahara-extra-artifacts/run.yaml +++ b/playbooks/legacy/sahara-extra-artifacts/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-extra-artifacts from old job gate-sahara-extra-artifacts tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ # tell to script where it should place dist results tools/build-all-artifacts.sh $BRANCH executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml index fa965140..c4cb7cb1 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-ambari-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images ambari executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml index 4a2e28e6..4f605cf0 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-cloudera-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images cloudera executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml index 5980ad0c..c2719959 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml @@ -3,6 +3,11 @@ gate-sahara-image-elements-buildimages-mapr-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images mapr executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml index f09e286c..3c312d60 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-plain-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images plain executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml index 0c08b977..a89c8677 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-spark-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images spark executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml index 65fecd83..9161dca3 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-storm-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images storm executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml index 66902c6e..45759328 100644 --- a/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml +++ b/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml @@ -3,6 +3,11 @@ job gate-sahara-image-elements-buildimages-vanilla-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ export DEST=/opt/sahara-image-build ./tools/gate/build-images vanilla executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-pylint/post.yaml b/playbooks/legacy/sahara-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/sahara-pylint/post.yaml +++ b/playbooks/legacy/sahara-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-pylint/run.yaml b/playbooks/legacy/sahara-pylint/run.yaml index 0d1af96e..27b90319 100644 --- a/playbooks/legacy/sahara-pylint/run.yaml +++ b/playbooks/legacy/sahara-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-pylint from old job gate-sahara-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-tests-pylint/post.yaml b/playbooks/legacy/sahara-tests-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/sahara-tests-pylint/post.yaml +++ b/playbooks/legacy/sahara-tests-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/sahara-tests-pylint/run.yaml b/playbooks/legacy/sahara-tests-pylint/run.yaml index 9e927d77..1baba4a7 100644 --- a/playbooks/legacy/sahara-tests-pylint/run.yaml +++ b/playbooks/legacy/sahara-tests-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sahara-tests-pylint from old job gate-sahara-tests-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sandbox-tag/run.yaml b/playbooks/legacy/sandbox-tag/run.yaml index 4db2f581..fe37c4a0 100644 --- a/playbooks/legacy/sandbox-tag/run.yaml +++ b/playbooks/legacy/sandbox-tag/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sandbox-tag from old job sandbox-tag tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,4 +48,5 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/scalpels-dsvm-neutron/post.yaml b/playbooks/legacy/scalpels-dsvm-neutron/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/scalpels-dsvm-neutron/post.yaml +++ b/playbooks/legacy/scalpels-dsvm-neutron/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/scalpels-dsvm-neutron/run.yaml b/playbooks/legacy/scalpels-dsvm-neutron/run.yaml index 00081e98..8cae0c52 100644 --- a/playbooks/legacy/scalpels-dsvm-neutron/run.yaml +++ b/playbooks/legacy/scalpels-dsvm-neutron/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-scalpels-dsvm-neutron from old job gate-scalpels-dsvm-neutron-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sdk-dsvm-functional/post.yaml b/playbooks/legacy/sdk-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/sdk-dsvm-functional/post.yaml +++ b/playbooks/legacy/sdk-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sdk-dsvm-functional/run.yaml b/playbooks/legacy/sdk-dsvm-functional/run.yaml index f9c54386..39202818 100644 --- a/playbooks/legacy/sdk-dsvm-functional/run.yaml +++ b/playbooks/legacy/sdk-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sdk-dsvm-functional from old job gate-sdk-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +62,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml b/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml +++ b/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml b/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml index 8909bacf..6ee5940b 100644 --- a/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml +++ b/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sdk-dsvm-load-balancer-functional from old job gate-sdk-dsvm-load-balancer-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml index 8fc9a905..63f66465 100644 --- a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ gate-searchlight-ui-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml index 7e06a894..035b6aad 100644 --- a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ gate-searchlight-ui-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml b/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml index fe356df3..3c7d9eff 100644 --- a/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml +++ b/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml b/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml index c6cc7e33..89718340 100644 --- a/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml +++ b/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-security-doc-tox-doc-publishdocs from old job security-doc-tox-doc-publishdocs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml index bd53e899..abb036c8 100644 --- a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dashboard-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml index 6238f2f6..9bac88d9 100644 --- a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dashboard-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml index b138dbca..db319a81 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-senlin-dsvm-tempest-py27-api from old job gate-senlin-dsvm-tempest-py27-api tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -91,4 +97,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml index 888556de..0037b9e9 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dsvm-tempest-py27-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,4 +98,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml index 9d6b297d..0ba03b34 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dsvm-tempest-py27-integration-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,4 +98,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml index 9ebcbe0c..02684194 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-senlin-dsvm-tempest-py35-api from old job gate-senlin-dsvm-tempest-py35-api-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -91,4 +97,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml index ee809d8b..ae6f147f 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dsvm-tempest-py35-functional-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,4 +98,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml index d0b68c2e..0b45469c 100644 --- a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml @@ -3,6 +3,11 @@ gate-senlin-dsvm-tempest-py35-integration-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -92,4 +98,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlinclient-dsvm-functional/post.yaml b/playbooks/legacy/senlinclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/senlinclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/senlinclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/senlinclient-dsvm-functional/run.yaml b/playbooks/legacy/senlinclient-dsvm-functional/run.yaml index 0a45be33..b81037ae 100644 --- a/playbooks/legacy/senlinclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/senlinclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-senlinclient-dsvm-functional from old job gate-senlinclient-dsvm-functional-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,4 +66,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/service-types-authority-validate/post.yaml b/playbooks/legacy/service-types-authority-validate/post.yaml index 0744a27c..a48c0b23 100644 --- a/playbooks/legacy/service-types-authority-validate/post.yaml +++ b/playbooks/legacy/service-types-authority-validate/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -79,9 +79,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/service-types-authority-validate/run.yaml b/playbooks/legacy/service-types-authority-validate/run.yaml index d04f5757..9485339c 100644 --- a/playbooks/legacy/service-types-authority-validate/run.yaml +++ b/playbooks/legacy/service-types-authority-validate/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-service-types-authority-validate from old job gate-service-types-authority-validate tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +46,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +56,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publish + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +76,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-ansible-dev/post.yaml b/playbooks/legacy/shade-ansible-dev/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-ansible-dev/post.yaml +++ b/playbooks/legacy/shade-ansible-dev/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-ansible-dev/run.yaml b/playbooks/legacy/shade-ansible-dev/run.yaml index 1953a630..16a3daad 100644 --- a/playbooks/legacy/shade-ansible-dev/run.yaml +++ b/playbooks/legacy/shade-ansible-dev/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-ansible-dev from old job gate-shade-ansible-dev-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +80,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-ansible/post.yaml b/playbooks/legacy/shade-ansible/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-ansible/post.yaml +++ b/playbooks/legacy/shade-ansible/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-ansible/run.yaml b/playbooks/legacy/shade-ansible/run.yaml index 53df07b4..d171388a 100644 --- a/playbooks/legacy/shade-ansible/run.yaml +++ b/playbooks/legacy/shade-ansible/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-ansible from old job gate-shade-ansible tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +80,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-legacy/post.yaml b/playbooks/legacy/shade-functional-legacy/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional-legacy/post.yaml +++ b/playbooks/legacy/shade-functional-legacy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional-legacy/run.yaml b/playbooks/legacy/shade-functional-legacy/run.yaml index 186e5b2a..99a61419 100644 --- a/playbooks/legacy/shade-functional-legacy/run.yaml +++ b/playbooks/legacy/shade-functional-legacy/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional-legacy from old job gate-shade-functional-legacy tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-libs-py35/post.yaml b/playbooks/legacy/shade-functional-libs-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional-libs-py35/post.yaml +++ b/playbooks/legacy/shade-functional-libs-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional-libs-py35/run.yaml b/playbooks/legacy/shade-functional-libs-py35/run.yaml index c5c3fdd9..93282c9f 100644 --- a/playbooks/legacy/shade-functional-libs-py35/run.yaml +++ b/playbooks/legacy/shade-functional-libs-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional-libs-py35 from old job gate-shade-functional-libs-py35-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-libs/post.yaml b/playbooks/legacy/shade-functional-libs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional-libs/post.yaml +++ b/playbooks/legacy/shade-functional-libs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional-libs/run.yaml b/playbooks/legacy/shade-functional-libs/run.yaml index 7767bf5b..bc17ca85 100644 --- a/playbooks/legacy/shade-functional-libs/run.yaml +++ b/playbooks/legacy/shade-functional-libs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional-libs from old job gate-shade-functional-libs-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-magnum/post.yaml b/playbooks/legacy/shade-functional-magnum/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional-magnum/post.yaml +++ b/playbooks/legacy/shade-functional-magnum/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional-magnum/run.yaml b/playbooks/legacy/shade-functional-magnum/run.yaml index 540295b3..2bf59bcb 100644 --- a/playbooks/legacy/shade-functional-magnum/run.yaml +++ b/playbooks/legacy/shade-functional-magnum/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional-magnum from old job gate-shade-functional-magnum-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-py35/post.yaml b/playbooks/legacy/shade-functional-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional-py35/post.yaml +++ b/playbooks/legacy/shade-functional-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional-py35/run.yaml b/playbooks/legacy/shade-functional-py35/run.yaml index 4cf0fc83..467f2d55 100644 --- a/playbooks/legacy/shade-functional-py35/run.yaml +++ b/playbooks/legacy/shade-functional-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional-py35 from old job gate-shade-functional-py35 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional/post.yaml b/playbooks/legacy/shade-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/shade-functional/post.yaml +++ b/playbooks/legacy/shade-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/shade-functional/run.yaml b/playbooks/legacy/shade-functional/run.yaml index dd74357f..100eb6eb 100644 --- a/playbooks/legacy/shade-functional/run.yaml +++ b/playbooks/legacy/shade-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-shade-functional from old job gate-shade-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml b/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml b/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml index 0e462c4e..0ac0757f 100644 --- a/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-solum-devstack-dsvm-centos-7 from old job gate-solum-devstack-dsvm-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml b/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml b/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml index e1710293..c92a5603 100644 --- a/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-solum-devstack-dsvm-py35 from old job gate-solum-devstack-dsvm-py35-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml b/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml b/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml index 7f4f13c0..926e96d2 100644 --- a/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml +++ b/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-solum-devstack-dsvm-seperate-test from old job gate-solum-devstack-dsvm-seperate-test-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +80,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm/post.yaml b/playbooks/legacy/solum-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/solum-devstack-dsvm/post.yaml +++ b/playbooks/legacy/solum-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/solum-devstack-dsvm/run.yaml b/playbooks/legacy/solum-devstack-dsvm/run.yaml index 26dbfc3f..06a8bda4 100644 --- a/playbooks/legacy/solum-devstack-dsvm/run.yaml +++ b/playbooks/legacy/solum-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-solum-devstack-dsvm from old job gate-solum-devstack-dsvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml +++ b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml index 50c1075c..d36336f0 100644 --- a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml +++ b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sqlalchemy-migrate-devstack-dsvm from old job gate-sqlalchemy-migrate-devstack-dsvm-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml +++ b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml index b3c3ba63..2ffb781d 100644 --- a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml +++ b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-sqlalchemy-migrate-tox-py27sa07 from old job gate-sqlalchemy-migrate-tox-py27sa07-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27sa07 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-election-publish/post.yaml b/playbooks/legacy/static-election-publish/post.yaml index 87d8cf6a..1457922f 100644 --- a/playbooks/legacy/static-election-publish/post.yaml +++ b/playbooks/legacy/static-election-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: election/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-election-publish/run.yaml b/playbooks/legacy/static-election-publish/run.yaml index e9223cbe..d71dbf5b 100644 --- a/playbooks/legacy/static-election-publish/run.yaml +++ b/playbooks/legacy/static-election-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-election-publish from old job static-election-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-publish/post.yaml b/playbooks/legacy/static-governance-publish/post.yaml index dc319e74..a81d93d1 100644 --- a/playbooks/legacy/static-governance-publish/post.yaml +++ b/playbooks/legacy/static-governance-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tc/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-governance-publish/run.yaml b/playbooks/legacy/static-governance-publish/run.yaml index 726ac158..8f42871a 100644 --- a/playbooks/legacy/static-governance-publish/run.yaml +++ b/playbooks/legacy/static-governance-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-governance-publish from old job static-governance-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-uc-publish/post.yaml b/playbooks/legacy/static-governance-uc-publish/post.yaml index 682b6f0f..853c656e 100644 --- a/playbooks/legacy/static-governance-uc-publish/post.yaml +++ b/playbooks/legacy/static-governance-uc-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: uc/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-governance-uc-publish/run.yaml b/playbooks/legacy/static-governance-uc-publish/run.yaml index 0c8afcbf..558517d7 100644 --- a/playbooks/legacy/static-governance-uc-publish/run.yaml +++ b/playbooks/legacy/static-governance-uc-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-governance-uc-publish from old job static-governance-uc-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-website-publish/post.yaml b/playbooks/legacy/static-governance-website-publish/post.yaml index 126399ff..9cbfb125 100644 --- a/playbooks/legacy/static-governance-website-publish/post.yaml +++ b/playbooks/legacy/static-governance-website-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: governance/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-governance-website-publish/run.yaml b/playbooks/legacy/static-governance-website-publish/run.yaml index 3d88fbdd..01c12647 100644 --- a/playbooks/legacy/static-governance-website-publish/run.yaml +++ b/playbooks/legacy/static-governance-website-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-governance-website-publish from old job static-governance-website-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-ossa-publish/post.yaml b/playbooks/legacy/static-ossa-publish/post.yaml index b470c47a..f310a9d6 100644 --- a/playbooks/legacy/static-ossa-publish/post.yaml +++ b/playbooks/legacy/static-ossa-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: security/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-ossa-publish/run.yaml b/playbooks/legacy/static-ossa-publish/run.yaml index 127c0aa1..cf864bf6 100644 --- a/playbooks/legacy/static-ossa-publish/run.yaml +++ b/playbooks/legacy/static-ossa-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-ossa-publish from old job static-ossa-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-releases-publish/post.yaml b/playbooks/legacy/static-releases-publish/post.yaml index 501dbe79..3505dcc4 100644 --- a/playbooks/legacy/static-releases-publish/post.yaml +++ b/playbooks/legacy/static-releases-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: releases/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-releases-publish/run.yaml b/playbooks/legacy/static-releases-publish/run.yaml index 643f7111..ca76109d 100644 --- a/playbooks/legacy/static-releases-publish/run.yaml +++ b/playbooks/legacy/static-releases-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-releases-publish from old job static-releases-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-transparency-policy-publish/post.yaml b/playbooks/legacy/static-transparency-policy-publish/post.yaml index d2e45fdb..61f1577b 100644 --- a/playbooks/legacy/static-transparency-policy-publish/post.yaml +++ b/playbooks/legacy/static-transparency-policy-publish/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: transparency-policy/ mode: pull copy_links: true diff --git a/playbooks/legacy/static-transparency-policy-publish/run.yaml b/playbooks/legacy/static-transparency-policy-publish/run.yaml index 591448a9..045563d2 100644 --- a/playbooks/legacy/static-transparency-policy-publish/run.yaml +++ b/playbooks/legacy/static-transparency-policy-publish/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-static-transparency-policy-publish from old job static-transparency-policy-publish tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,10 +48,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +70,5 @@ mv ,content/* ./ rm -r ,content executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storlets-functional/post.yaml b/playbooks/legacy/storlets-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/storlets-functional/post.yaml +++ b/playbooks/legacy/storlets-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storlets-functional/run.yaml b/playbooks/legacy/storlets-functional/run.yaml index 9f5d7caa..fae817ea 100644 --- a/playbooks/legacy/storlets-functional/run.yaml +++ b/playbooks/legacy/storlets-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-storlets-functional from old job gate-storlets-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,6 +33,7 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ tests/setup_functional_test.sh tox -e func executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml index 6e81a296..8f96bc4b 100644 --- a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml +++ b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml index e5bc1838..1f6b5aff 100644 --- a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ job gate-storyboard-js-integration-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,18 +66,21 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,10 +95,12 @@ ./openstack-infra/storyboard/tools/install_test_backend.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh test:integration + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -103,6 +115,7 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -111,4 +124,5 @@ set -x ./openstack-infra/storyboard/tools/destroy_test_backend.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-js-integration/post.yaml b/playbooks/legacy/storyboard-js-integration/post.yaml index 6e81a296..8f96bc4b 100644 --- a/playbooks/legacy/storyboard-js-integration/post.yaml +++ b/playbooks/legacy/storyboard-js-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-js-integration/run.yaml b/playbooks/legacy/storyboard-js-integration/run.yaml index df29709e..75187336 100644 --- a/playbooks/legacy/storyboard-js-integration/run.yaml +++ b/playbooks/legacy/storyboard-js-integration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-storyboard-js-integration from old job gate-storyboard-js-integration-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,18 +65,21 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,10 +94,12 @@ ./openstack-infra/storyboard/tools/install_test_backend.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh test:integration + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -102,6 +114,7 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -110,4 +123,5 @@ set -x ./openstack-infra/storyboard/tools/destroy_test_backend.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-draft/post.yaml b/playbooks/legacy/storyboard-webclient-js-draft/post.yaml index dcdc881d..fcbc7fa1 100644 --- a/playbooks/legacy/storyboard-webclient-js-draft/post.yaml +++ b/playbooks/legacy/storyboard-webclient-js-draft/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-js-draft/run.yaml b/playbooks/legacy/storyboard-webclient-js-draft/run.yaml index ec0856d9..12e96ef9 100644 --- a/playbooks/legacy/storyboard-webclient-js-draft/run.yaml +++ b/playbooks/legacy/storyboard-webclient-js-draft/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-storyboard-webclient-js-draft from old job gate-storyboard-webclient-js-draft tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build:draft + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml b/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml +++ b/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml b/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml index 2d285cb7..0adad639 100644 --- a/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml +++ b/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml @@ -3,6 +3,11 @@ storyboard-webclient-js-release-branch tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -27,6 +32,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +61,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,10 +76,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -90,4 +100,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml b/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml +++ b/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml b/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml index 52777156..066f5cc1 100644 --- a/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml +++ b/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml @@ -3,6 +3,11 @@ storyboard-webclient-js-release-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -27,6 +32,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,10 +61,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,10 +76,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -90,4 +100,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml index d688bb9c..f73a1221 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml @@ -3,6 +3,11 @@ job gate-storyboard-webclient-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml index 42442376..32a95665 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml @@ -3,6 +3,11 @@ from old job gate-storyboard-webclient-nodejs4-npm-run-test-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml index 2b740faf..d3ea4670 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml @@ -3,6 +3,11 @@ from old job gate-storyboard-webclient-nodejs4-npm-run-test-integration tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml index f15e6893..ed9f1a68 100644 --- a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml @@ -3,6 +3,11 @@ old job gate-storyboard-webclient-nodejs4-npm-run-test-unit tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,24 +66,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,12 +97,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -117,6 +130,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -131,4 +145,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml index 2c016150..972a6410 100644 --- a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ gate-swift-dsvm-functional-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-dsvm-functional/post.yaml b/playbooks/legacy/swift-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/swift-dsvm-functional/post.yaml +++ b/playbooks/legacy/swift-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-dsvm-functional/run.yaml b/playbooks/legacy/swift-dsvm-functional/run.yaml index 9e87a9ce..b78c51ca 100644 --- a/playbooks/legacy/swift-dsvm-functional/run.yaml +++ b/playbooks/legacy/swift-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-dsvm-functional from old job gate-swift-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml index 80bc74a7..9bd37a91 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func-centos-7 from old job gate-swift-tox-xfs-tmp-func-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml index f55dcaf0..992607f2 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func-ec-centos-7 from old job gate-swift-tox-xfs-tmp-func-ec-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-ec executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml index c45b2b97..91729f4a 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func-ec from old job gate-swift-tox-xfs-tmp-func-ec-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-ec executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml index 0de4bbb0..dc47e536 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-swift-tox-xfs-tmp-func-encryption-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,6 +80,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-encryption executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml index d3b9f527..bd3b9a79 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func-encryption from old job gate-swift-tox-xfs-tmp-func-encryption-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-encryption executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml index 9b553456..1fdcd0d4 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-swift-tox-xfs-tmp-func-fast-post-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,6 +80,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-fast-post executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml index ed53b49c..f921a8f6 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func-fast-post from old job gate-swift-tox-xfs-tmp-func-fast-post-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-fast-post executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml index e83259c2..ab995666 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-swift-tox-xfs-tmp-func-post-as-copy-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,6 +80,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-post-as-copy executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml index f823e7d2..b0ba102b 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml @@ -3,6 +3,11 @@ gate-swift-tox-xfs-tmp-func-post-as-copy-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,6 +61,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,6 +71,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,6 +80,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func-post-as-copy executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml index 7ea7baaa..f9b9926e 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-func from old job gate-swift-tox-xfs-tmp-func-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh func executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml index b073b6e4..aea216b7 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-py27-centos-7 from old job gate-swift-tox-xfs-tmp-py27-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh py27 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml index d4f1f7ac..a6474b54 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-py27 from old job gate-swift-tox-xfs-tmp-py27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh py27 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml index e0ed495f..3b1755bf 100644 --- a/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml +++ b/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift-tox-xfs-tmp-py35 from old job gate-swift-tox-xfs-tmp-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,6 +60,7 @@ sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp sudo chmod 777 $HOME/xfstmp executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,6 +70,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,6 +79,7 @@ export TMPDIR=$HOME/xfstmp /usr/local/jenkins/slave_scripts/run-tox.sh py35 executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -84,4 +94,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-pylint/post.yaml b/playbooks/legacy/swift3-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-pylint/post.yaml +++ b/playbooks/legacy/swift3-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-pylint/run.yaml b/playbooks/legacy/swift3-pylint/run.yaml index ef3085b2..3f40e37f 100644 --- a/playbooks/legacy/swift3-pylint/run.yaml +++ b/playbooks/legacy/swift3-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-pylint from old job gate-swift3-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-keystone/post.yaml b/playbooks/legacy/swift3-tox-keystone/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-tox-keystone/post.yaml +++ b/playbooks/legacy/swift3-tox-keystone/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-tox-keystone/run.yaml b/playbooks/legacy/swift3-tox-keystone/run.yaml index 6cbcf12c..71365666 100644 --- a/playbooks/legacy/swift3-tox-keystone/run.yaml +++ b/playbooks/legacy/swift3-tox-keystone/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-tox-keystone from old job gate-swift3-tox-keystone-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh keystone + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3acl/post.yaml b/playbooks/legacy/swift3-tox-s3acl/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-tox-s3acl/post.yaml +++ b/playbooks/legacy/swift3-tox-s3acl/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-tox-s3acl/run.yaml b/playbooks/legacy/swift3-tox-s3acl/run.yaml index 92ebc8c6..7cc542e0 100644 --- a/playbooks/legacy/swift3-tox-s3acl/run.yaml +++ b/playbooks/legacy/swift3-tox-s3acl/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-tox-s3acl from old job gate-swift3-tox-s3acl-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3acl + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml b/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml +++ b/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml b/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml index 51329397..867c46e9 100644 --- a/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml +++ b/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-tox-s3tests_keystone from old job gate-swift3-tox-s3tests_keystone-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3tests_keystone + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml b/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml +++ b/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml b/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml index e033e4ac..98e14cdc 100644 --- a/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml +++ b/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-tox-s3tests_tempauth from old job gate-swift3-tox-s3tests_tempauth-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3tests_tempauth + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-tempauth/post.yaml b/playbooks/legacy/swift3-tox-tempauth/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/swift3-tox-tempauth/post.yaml +++ b/playbooks/legacy/swift3-tox-tempauth/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/swift3-tox-tempauth/run.yaml b/playbooks/legacy/swift3-tox-tempauth/run.yaml index 5641ca6b..a9f4e01a 100644 --- a/playbooks/legacy/swift3-tox-tempauth/run.yaml +++ b/playbooks/legacy/swift3-tox-tempauth/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swift3-tox-tempauth from old job gate-swift3-tox-tempauth-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh tempauth + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml +++ b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml index 6bcabe7c..a90c27d8 100644 --- a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml +++ b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml @@ -3,6 +3,11 @@ old job gate-swiftclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swiftclient-dsvm-functional/post.yaml b/playbooks/legacy/swiftclient-dsvm-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/swiftclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/swiftclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/swiftclient-dsvm-functional/run.yaml b/playbooks/legacy/swiftclient-dsvm-functional/run.yaml index b250db3b..b3060e1a 100644 --- a/playbooks/legacy/swiftclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/swiftclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-swiftclient-dsvm-functional from old job gate-swiftclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/system-config-puppet-syntax-3/run.yaml b/playbooks/legacy/system-config-puppet-syntax-3/run.yaml index b8119a18..b212818d 100644 --- a/playbooks/legacy/system-config-puppet-syntax-3/run.yaml +++ b/playbooks/legacy/system-config-puppet-syntax-3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-system-config-puppet-syntax-3 from old job gate-system-config-puppet-syntax-3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -59,6 +67,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +82,5 @@ export FUTURE_PARSER=yes fi $GEM_HOME/bin/bundle exec rake syntax + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tacker-dsvm-functional/post.yaml b/playbooks/legacy/tacker-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tacker-dsvm-functional/post.yaml +++ b/playbooks/legacy/tacker-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tacker-dsvm-functional/run.yaml b/playbooks/legacy/tacker-dsvm-functional/run.yaml index 8a46e469..453b8382 100644 --- a/playbooks/legacy/tacker-dsvm-functional/run.yaml +++ b/playbooks/legacy/tacker-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tacker-dsvm-functional from old job gate-tacker-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -34,6 +40,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml index 2646e840..a60c393b 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-telemetry-dsvm-integration-aodh from old job gate-telemetry-dsvm-integration-aodh-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml index d46905c7..338dda3c 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml @@ -3,6 +3,11 @@ gate-telemetry-dsvm-integration-ceilometer-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml index 2f43a27d..de9c7695 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml @@ -3,6 +3,11 @@ job gate-telemetry-dsvm-integration-oslo.messaging-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml index 4a462bd0..fdcadc01 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-telemetry-dsvm-integration-panko from old job gate-telemetry-dsvm-integration-panko-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml index 2278d58e..4bf1867d 100644 --- a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml +++ b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml @@ -3,6 +3,11 @@ from old job gate-telemetry-dsvm-integration-python-ceilometerclient-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-almanach-dsvm/post.yaml b/playbooks/legacy/tempest-almanach-dsvm/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-almanach-dsvm/post.yaml +++ b/playbooks/legacy/tempest-almanach-dsvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-almanach-dsvm/run.yaml b/playbooks/legacy/tempest-almanach-dsvm/run.yaml index b5f48fd1..da85de14 100644 --- a/playbooks/legacy/tempest-almanach-dsvm/run.yaml +++ b/playbooks/legacy/tempest-almanach-dsvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-almanach-dsvm from old job gate-tempest-almanach-dsvm tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-cells/post.yaml b/playbooks/legacy/tempest-dsvm-cells/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-cells/post.yaml +++ b/playbooks/legacy/tempest-dsvm-cells/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-cells/run.yaml b/playbooks/legacy/tempest-dsvm-cells/run.yaml index 3bf785ef..f0ccaae6 100644 --- a/playbooks/legacy/tempest-dsvm-cells/run.yaml +++ b/playbooks/legacy/tempest-dsvm-cells/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-cells from old job gate-tempest-dsvm-cells-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -37,4 +43,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml b/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml +++ b/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml b/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml index f5882388..3371b715 100644 --- a/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml +++ b/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-cinder-v1 from old job gate-tempest-dsvm-cinder-v1-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml index f41df9a4..59d4f4c1 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml @@ -3,9 +3,15 @@ gate-tempest-dsvm-designate-agent-djbdns-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -21,6 +27,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -36,6 +43,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml index e6865c35..f89a2114 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-designate-agent-gdnsd from old job gate-tempest-dsvm-designate-agent-gdnsd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml index 9f9ee3fd..e1e43d15 100644 --- a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-designate-agent-knot2 from old job gate-tempest-dsvm-designate-agent-knot2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,6 +42,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml b/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml b/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml index 81cbb321..ba5e0f7b 100644 --- a/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-designate-bind9 from old job gate-tempest-dsvm-designate-bind9-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +85,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml index 9f573a9b..a130ada1 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml @@ -3,9 +3,15 @@ old job gate-tempest-dsvm-designate-pdns4-identity-v3-only-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -21,6 +27,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +86,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml index dc313af0..05cc8d14 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml @@ -3,9 +3,15 @@ gate-tempest-dsvm-designate-pdns4-postgres-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -21,6 +27,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +86,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml index 90366095..3b9875e6 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-designate-pdns4-py35 from old job gate-tempest-dsvm-designate-pdns4-py35-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +85,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml index 5829422c..a3c0e293 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml @@ -3,9 +3,15 @@ job gate-tempest-dsvm-designate-pdns4-worker-model-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -21,6 +27,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,4 +86,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml index 1c009b96..ecc9bc40 100644 --- a/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-designate-pdns4 from old job gate-tempest-dsvm-designate-pdns4-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -78,4 +85,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml b/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml +++ b/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml b/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml index a89666a3..c30c4c26 100644 --- a/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml +++ b/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-dragonflow from old job gate-tempest-dsvm-dragonflow-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +73,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml b/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml b/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml index f961d1f9..5be02944 100644 --- a/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-amqp1 from old job gate-tempest-dsvm-full-amqp1-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml b/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml b/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml index dfd14a67..53f8fa6f 100644 --- a/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-full-bdd from old job gate-tempest-dsvm-full-bdd-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | echo "For problems with this job, contact Ivan Kolodyazhny freenode: e0ne" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml index 7a2f88ab..5536e35d 100644 --- a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-full-ceph-plugin-src-glance_store-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml index f0074a75..a79ec994 100644 --- a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-full-ceph-plugin-src-os-brick-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml index 5574f710..f5f39bd5 100644 --- a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-full-devstack-plugin-ceph-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,4 +65,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml index 223947e4..8fd77d7b 100644 --- a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-full-devstack-plugin-nfs-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml index 950b72fe..9258d12a 100644 --- a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-full-drbd-devstack from old job gate-tempest-dsvm-full-drbd-devstack-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | echo "For problems with this job, contact Philipp Marek freenode: flip214" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +40,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml b/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml b/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml index 4d2b8547..2e476f73 100644 --- a/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-hdfs from old job gate-tempest-dsvm-full-hdfs-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml index bd479bf1..5edfaf2d 100644 --- a/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-kafka from old job gate-tempest-dsvm-full-kafka-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml index 43bc8dcd..7d2c52ac 100644 --- a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-lio-src-os-brick from old job gate-tempest-dsvm-full-lio-src-os-brick-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-lio/post.yaml b/playbooks/legacy/tempest-dsvm-full-lio/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-lio/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-lio/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-lio/run.yaml b/playbooks/legacy/tempest-dsvm-full-lio/run.yaml index b006632f..0d974916 100644 --- a/playbooks/legacy/tempest-dsvm-full-lio/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-lio/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-lio from old job gate-tempest-dsvm-full-lio-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml index 05ed2d9f..04150493 100644 --- a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-full-sheepdog-src-os-brick-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml index a58be657..13c49aea 100644 --- a/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-sheepdog from old job gate-tempest-dsvm-full-sheepdog-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml index 9ae1186b..5df548ea 100644 --- a/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-test-accounts from old job gate-tempest-dsvm-full-test-accounts-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml b/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml +++ b/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml b/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml index 63efea7c..fa29ce68 100644 --- a/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml +++ b/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-full-zmq from old job gate-tempest-dsvm-full-zmq-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml +++ b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml index abe1b465..51d44f29 100644 --- a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml +++ b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-identity-v3-test-accounts-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml index 35e2abf5..33d323d3 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-ironic-bfv from old job gate-tempest-dsvm-ironic-bfv-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="baremetal_boot_from_volume" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,6 +73,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,6 +86,7 @@ export ENABLED_SERVICES=cinder,c-sch,c-api,c-vol EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -155,4 +165,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml index 52bc4fbf..a5860eac 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-ironic-inspector-discovery-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="InspectorDiscoveryTest" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,6 +95,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -104,6 +113,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -182,4 +192,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml index d738c05f..26fba45f 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-ironic-inspector-src from old job gate-tempest-dsvm-ironic-inspector-src-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="InspectorBasicTest" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,6 +94,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -103,6 +112,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -181,4 +191,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml index 9f826321..ad31ebe3 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-ironic-inspector from old job gate-tempest-dsvm-ironic-inspector-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="InspectorBasicTest" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -86,6 +94,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -103,6 +112,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -181,4 +191,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml index d839eff5..6571dbe8 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml index 73b8632e..30027d63 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml index 6ed411e8..de348aef 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml index 2f8fd917..85f1e5ef 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml index 28e36c93..f2ff26f4 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml index 50516f34..b7b11416 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml index 48b16e15..84b7ec12 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml index 60208051..3d17b147 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export DEVSTACK_GATE_USE_PYTHON3=True EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,6 +99,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -167,4 +178,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml index db470b9d..a2439796 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-redfish-sushy-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ export DEVSTACK_PROJECT_FROM_GIT="sushy,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml index 6eda0bde..a1f35af2 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-redfish-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml index c54a122b..60c15827 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml index afbf73ea..64e97000 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -24,6 +30,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_RESOURCE_CLASSES=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml index a44f6344..2f843bb4 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TOPOLOGY="multinode" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +82,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -91,6 +100,7 @@ export TEMPEST_CONCURRENCY=4 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -169,4 +179,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml index 991dd939..417aba6d 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml index b6961339..49e3638e 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml index e2e115ff..242459b5 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml index 752598be..f63c148b 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml index 9c1e6c5b..aff94e73 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml index dff41591..6784b7f5 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml index 27f540f4..5f6b04d9 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +74,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -144,4 +153,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml index d901e3e8..4b1b70e9 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-lib-partition-agent_ipmitool-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml index d5d6bd08..df99047d 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-ironic-lib-partition-pxe_ipmitool-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml index 7e030bd8..f5c31893 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml index ca3a21ec..bd892364 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml index fea83c0b..18581e21 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-ironic-multitenant-network-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="baremetal_multitenancy" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +82,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -91,6 +100,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -169,4 +179,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml index b917fd9c..14c04cc2 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-ironic-parallel from old job gate-tempest-dsvm-ironic-parallel-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml index a8090202..ba8a9fae 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_ipa-full from old job gate-tempest-dsvm-ironic-pxe_ipa-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -40,6 +46,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,6 +55,7 @@ export DEVSTACK_GATE_TEMPEST_FULL=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,6 +73,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -143,4 +152,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml index a4318113..c590f392 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-ironic-pxe_ipmitool-postgres-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_GATE_POSTGRES=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,6 +74,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=False" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -82,6 +92,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -160,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml index de5e300d..ca821a92 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="pyghmi,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml index 47324046..b5bb3792 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="virtualbmc,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,6 +74,7 @@ export DEVSTACK_PROJECT_FROM_GIT="pyghmi,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -82,6 +92,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -160,4 +171,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml index ebd63940..c032cfaa 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-ironic-pxe_snmp-virtualpdu-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="virtualpdu,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml index 846ea132..af4bb9eb 100644 --- a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-ironic-staging-drivers-ansible-wholedisk-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,6 +57,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-staging-drivers git://git.openstack.org/openstack/ironic-staging-drivers" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,6 +66,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_STAGING_DRIVER=pxe_ipmitool_ansible" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,6 +75,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -83,6 +93,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -161,4 +172,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml +++ b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml index eddb6e1f..c4edb5a0 100644 --- a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml +++ b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-kuryr-kubernetes-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,6 +70,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +96,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml index ba0607f3..1413a8aa 100644 --- a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-lbaasv2-kuryr-kubernetes-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,6 +83,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -100,4 +107,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml +++ b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml index 43325a19..94c21ba1 100644 --- a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml +++ b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-ldap-domain-specific-driver-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml index 57135084..099ab270 100644 --- a/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-lvm-multibackend from old job gate-tempest-dsvm-lvm-multibackend-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lvm/post.yaml b/playbooks/legacy/tempest-dsvm-lvm/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-lvm/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lvm/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lvm/run.yaml b/playbooks/legacy/tempest-dsvm-lvm/run.yaml index 87f69e3f..5b032b23 100644 --- a/playbooks/legacy/tempest-dsvm-lvm/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lvm/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-lvm from old job gate-tempest-dsvm-lvm-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxc/post.yaml b/playbooks/legacy/tempest-dsvm-lxc/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-lxc/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lxc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lxc/run.yaml b/playbooks/legacy/tempest-dsvm-lxc/run.yaml index 9695db4a..95819a6b 100644 --- a/playbooks/legacy/tempest-dsvm-lxc/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lxc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-lxc from old job gate-tempest-dsvm-lxc-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml index 8b0f0fb9..773b7fa7 100644 --- a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-lxd-linuxbridge from old job gate-tempest-dsvm-lxd-linuxbridge-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml b/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml +++ b/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml b/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml index edd6af3b..bccad0d6 100644 --- a/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml +++ b/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-lxd-ovs from old job gate-tempest-dsvm-lxd-ovs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml index 30620ce7..a68ddce3 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-monasca-java-mysql-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml index cbff9e4f..e6679c89 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-monasca-java-postgresql-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml index 95ac857d..ea5516dd 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-monasca-log-api from old job gate-tempest-dsvm-monasca-log-api-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml index f26ead52..222704ac 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-monasca-pipeline-events-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml index 49ebe7ac..f520114f 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-monasca-pipeline-logs from old job gate-tempest-dsvm-monasca-pipeline-logs-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml index 61711826..b4371e60 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-monasca-python-mysql-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml index 6ab8c3f1..49b55346 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-monasca-python-postgresql-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,4 +81,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml index 74f46fe1..1b274bf4 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-monasca-transform-python-functional tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml index 8d2d8179..492b2da2 100644 --- a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-monasca-transform-python35-functional-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml +++ b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml index 35b908c4..bbd317ab 100644 --- a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml +++ b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-mongodb-zaqar from old job gate-tempest-dsvm-mongodb-zaqar-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml b/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml +++ b/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml b/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml index 06cc812f..91fb431f 100644 --- a/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml +++ b/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-multibackend-matrix from old job gate-tempest-dsvm-multibackend-matrix-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml index 292f0bdb..a4759308 100644 --- a/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-multinode-full from old job gate-tempest-dsvm-multinode-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml b/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml +++ b/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml b/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml index 9bfcbee1..2df61bc6 100644 --- a/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml +++ b/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-multinode-live-migration-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +44,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-murano-api/post.yaml b/playbooks/legacy/tempest-dsvm-murano-api/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-murano-api/post.yaml +++ b/playbooks/legacy/tempest-dsvm-murano-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-murano-api/run.yaml b/playbooks/legacy/tempest-dsvm-murano-api/run.yaml index 15b8c040..92820c93 100644 --- a/playbooks/legacy/tempest-dsvm-murano-api/run.yaml +++ b/playbooks/legacy/tempest-dsvm-murano-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-murano-api from old job gate-tempest-dsvm-murano-api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml b/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml +++ b/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml b/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml index 4f824030..cd84422d 100644 --- a/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml +++ b/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-murano-cfapi from old job gate-tempest-dsvm-murano-cfapi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml b/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml b/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml index 207ff020..bb50e3cb 100644 --- a/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-networking-bagpipe from old job gate-tempest-dsvm-networking-bagpipe tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ \ncp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh\n\ ./safe-devstack-vm-gate-wrap.sh\n" executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml index a2e91c00..a8f80e6e 100644 --- a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-networking-bgpvpn-bagpipe-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml b/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml b/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml index db10ad59..eb05a000 100644 --- a/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-networking-calico from old job gate-tempest-dsvm-networking-calico tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml index 58588595..9c152a99 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-midonet-aio-ml2-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml index ec395cd5..6bbd8259 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml index aebd3437..c4297dbb 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-legacy-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml index df04f52b..994f59bb 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml index ff6ddadf..6ef6d790 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-networking-midonet-aio-ml2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml index a0e09a83..3808ecf6 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-networking-midonet-aio-v2-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml index c1d90aea..3b043570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-networking-midonet-aio-v2-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml index 896424b2..ccc2615c 100644 --- a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-networking-midonet-multinode-ml2-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +54,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml index fe2a919d..52ad0f34 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-odl-boron-snapshot-v2driver-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml index 077d7836..d5e82d25 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml index dcb542a4..80ee4edc 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-odl-multinode-carbon-snapshot-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml index 3a101b94..409e01bd 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-odl-multinode-nitrogen-snapshot-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml index 49bc53ce..2e6135d1 100644 --- a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -77,4 +84,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml b/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml b/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml index 3a618dfa..50822fe4 100644 --- a/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-networking-onos from old job gate-tempest-dsvm-networking-onos-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -69,4 +76,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml index 7e1ce024..10aa4c42 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-networking-ovn-multinode-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml index 213a94f1..93ac9d98 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-ovn-neutron-api-ovs-release-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml index 01e5f745..b9039a5b 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-networking-ovn-ovs-master-python3-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml index e8ac0477..9e473f2e 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-networking-ovn-ovs-master-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml index 559cfb35..5a3382ae 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml index 745ea358..b6a8c1a4 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-networking-ovn-ovs-release tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml index 0d424b95..2489e3b2 100644 --- a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-networking-ovs-dpdk from old job gate-tempest-dsvm-networking-ovs-dpdk-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,4 +74,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml index 734d7f39..1395e939 100644 --- a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-networking-sfc-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +79,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml index b400b592..5eac4111 100644 --- a/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml +++ b/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-networking-sfc from old job gate-tempest-dsvm-networking-sfc-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -76,4 +83,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml index 1d7896f6..394ed572 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-neutron-dvr-ha-multinode-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml index 26f7450e..f33ee528 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-neutron-dvr-multinode-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml index 82808c80..8466945d 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml index 17c20ad8..9cb22754 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-dvr from old job gate-tempest-dsvm-neutron-dvr-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -34,4 +40,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml index 9c86a5b9..12947296 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-full-centos-7 from old job gate-tempest-dsvm-neutron-full-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml index 71888395..950ad5e8 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-full-fedora-26-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml index b6283f4b..2529a92e 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-full-newton from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-newton-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml index 0fb4d66b..47391355 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-full-non-admin-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml index 8ec635f8..1ddcf07b 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-full-ocata from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-ocata-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml index 8d6d7e82..c6b87d89 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-full-opensuse-423-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml index af6eac95..2f46b069 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-full-pike from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-pike-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml index c416c8ff..0bcc021f 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-neutron-full-test-accounts-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml index 54f18dbb..fad35a00 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-full from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml index cc8cf2ed..05aab2ae 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-ipv6only from old job gate-tempest-dsvm-neutron-ipv6only-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml index d3f332f2..2152e2e1 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-linuxbridge from old job gate-tempest-dsvm-neutron-linuxbridge-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -46,4 +53,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml index 8c0a7e00..b41b4fdf 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-multinode-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml index b0a32bcf..abbd26b7 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-nova-next-full-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml index 7686ce0d..ac2dc199 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-ovsfw from old job gate-tempest-dsvm-neutron-ovsfw-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +44,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml index faca197e..f5b15764 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-pecan from old job gate-tempest-dsvm-neutron-pecan-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +44,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml index 435a7302..673383fe 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-pg-full from old job gate-tempest-dsvm-neutron-pg-full-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -35,4 +41,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml index 33845542..c53b9cdf 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml @@ -3,6 +3,11 @@ job gate-tempest-dsvm-neutron-scenario-linuxbridge-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml index 4d5050fa..f716a668 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml index 9d1fa1de..0695cdf3 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-serviceipv6 from old job gate-tempest-dsvm-neutron-serviceipv6-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml index 7bb408ea..886c87af 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-neutron-src-oslo.versionedobjects-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +50,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml index 2898af32..2e04aa98 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-src-plugin from old job gate-tempest-dsvm-neutron-src-{name}-plugin-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml index 9d5e8f75..68266fcf 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-neutron-src-python-saharaclient-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +57,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml index a9c846d4..4efe7004 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-neutron-src from old job gate-tempest-dsvm-neutron-src-{name}-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -43,4 +49,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml index 4fb7d0dc..b745b1a9 100644 --- a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml +++ b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-neutron-with-ryu-master-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml b/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml b/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml index e30e2917..e2e80723 100644 --- a/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-nnet-newton from old job gate-tempest-dsvm-nnet-ubuntu-xenial-newton-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml b/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml b/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml index 6bea016c..de9b6fac 100644 --- a/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-nnet-ocata from old job gate-tempest-dsvm-nnet-ubuntu-xenial-ocata-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet/post.yaml b/playbooks/legacy/tempest-dsvm-nnet/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nnet/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nnet/run.yaml b/playbooks/legacy/tempest-dsvm-nnet/run.yaml index 6861d1d3..a31e6d3b 100644 --- a/playbooks/legacy/tempest-dsvm-nnet/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nnet/run.yaml @@ -2,9 +2,15 @@ name: Autoconverted job legacy-tempest-dsvm-nnet from old job gate-tempest-dsvm-nnet-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -20,6 +26,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,4 +45,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml index 4395d280..36b1e158 100644 --- a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-nova-libvirt-kvm-apr from old job gate-tempest-dsvm-nova-libvirt-kvm-apr-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,4 +55,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml b/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml b/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml index 910961db..feb33df2 100644 --- a/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-nova-os-vif from old job gate-tempest-dsvm-nova-os-vif-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -34,4 +40,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml b/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml b/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml index 7a89ff09..54fc6039 100644 --- a/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-nova-v20-api from old job gate-tempest-dsvm-nova-v20-api-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,4 +52,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml index 0d1eb4ea..c45d17a0 100644 --- a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml +++ b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-nova-wsgi-full from old job gate-tempest-dsvm-nova-wsgi-full-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -44,4 +51,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml +++ b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml index 1597621b..cc99ca74 100644 --- a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml +++ b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-octavia-kuryr-kubernetes-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -79,6 +85,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -106,4 +113,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml index 283f3afc..76348480 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-patrole-admin from old job gate-tempest-dsvm-patrole-admin-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml index 44b4e36c..4eefbab9 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-patrole-member from old job gate-tempest-dsvm-patrole-member-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml index ec2d50ae..d1dd431b 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-patrole-multinode-admin-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml index b9b0a357..f9c20f69 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-patrole-multinode-member-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -31,6 +37,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,4 +64,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml index e06bfc07..59ae0de3 100644 --- a/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml +++ b/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-patrole-py35-member from old job gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -38,6 +44,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml +++ b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml index 3942430f..c86bca50 100644 --- a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml +++ b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-py35-full-devstack-plugin-ceph-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -34,6 +40,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +63,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-py35/post.yaml b/playbooks/legacy/tempest-dsvm-py35/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-py35/post.yaml +++ b/playbooks/legacy/tempest-dsvm-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-py35/run.yaml b/playbooks/legacy/tempest-dsvm-py35/run.yaml index d291d316..fda1b5a7 100644 --- a/playbooks/legacy/tempest-dsvm-py35/run.yaml +++ b/playbooks/legacy/tempest-dsvm-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-py35 from old job gate-tempest-dsvm-py35-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml +++ b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml index 4896e57d..a2ee0aca 100644 --- a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml +++ b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml @@ -3,6 +3,11 @@ old job gate-tempest-dsvm-python-ironic-inspector-client-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="InspectorSmokeTest" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,6 +95,7 @@ export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -95,6 +104,7 @@ export DEVSTACK_PROJECT_FROM_GIT="python-ironic-inspector-client,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -112,6 +122,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -190,4 +201,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml +++ b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml index b803a201..84a66b85 100644 --- a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml +++ b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-python-ironicclient-src-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +47,7 @@ esac EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,6 +56,7 @@ export DEVSTACK_GATE_TEMPEST_REGEX="ironic" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -57,6 +65,7 @@ export DEVSTACK_PROJECT_FROM_GIT="python-ironicclient,$DEVSTACK_PROJECT_FROM_GIT" EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -74,6 +83,7 @@ export TEMPEST_CONCURRENCY=1 EOF + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -152,4 +162,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml +++ b/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml index 1ea817af..5cbf52d1 100644 --- a/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml +++ b/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-redis-zaqar from old job gate-tempest-dsvm-redis-zaqar-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-sahara/post.yaml b/playbooks/legacy/tempest-dsvm-sahara/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-sahara/post.yaml +++ b/playbooks/legacy/tempest-dsvm-sahara/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-sahara/run.yaml b/playbooks/legacy/tempest-dsvm-sahara/run.yaml index defc7ff0..ec6276a9 100644 --- a/playbooks/legacy/tempest-dsvm-sahara/run.yaml +++ b/playbooks/legacy/tempest-dsvm-sahara/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-sahara from old job gate-tempest-dsvm-sahara-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml +++ b/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml index 088a3cf9..29322905 100644 --- a/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml +++ b/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-swift-zaqar from old job gate-tempest-dsvm-swift-zaqar-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +59,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml b/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml +++ b/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml b/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml index c0cd289f..1a109b9f 100644 --- a/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml +++ b/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-tap-as-a-service from old job gate-tempest-dsvm-tap-as-a-service tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -51,4 +58,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml +++ b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml index 4538d65f..5c5c14cb 100644 --- a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml +++ b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-dsvm-zeromq-multibackend from old job gate-tempest-dsvm-zeromq-multibackend-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -49,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml +++ b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml index 5e8db329..0da66f60 100644 --- a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml +++ b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml @@ -3,6 +3,11 @@ gate-tempest-dsvm-zun-multinode-docker-sql-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -73,4 +80,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml index 74c7e770..be83132c 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml index 42351dc6..907a4696 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-neutron-dsvm-src-oslo.messaging-kafka-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml index 34c03db3..9897e5cc 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-neutron-dsvm-src-oslo.messaging-pika-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml index bf638ee7..0ecf8f23 100644 --- a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml @@ -3,6 +3,11 @@ from old job gate-tempest-neutron-dsvm-src-oslo.messaging-zmq-default-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -50,4 +56,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml b/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml +++ b/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml b/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml index 738cfca3..4b2e7d70 100644 --- a/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml +++ b/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tempest-tox-plugin-sanity-check from old job gate-tempest-tox-plugin-sanity-check-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh plugin-sanity-check + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-consul/post.yaml b/playbooks/legacy/tooz-tox-py27-consul/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-consul/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-consul/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-consul/run.yaml b/playbooks/legacy/tooz-tox-py27-consul/run.yaml index f65b6e8b..b47e4b74 100644 --- a/playbooks/legacy/tooz-tox-py27-consul/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-consul/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-consul from old job gate-tooz-tox-py27-consul-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-consul + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-etcd/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd/run.yaml index 2c7a8017..820665a9 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-etcd from old job gate-tooz-tox-py27-etcd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml index f87a258f..a8a9a813 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-etcd3 from old job gate-tooz-tox-py27-etcd3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd3 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml index f66545f3..7100c8be 100644 --- a/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-etcd3gw from old job gate-tooz-tox-py27-etcd3gw-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd3gw + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-memcached/post.yaml b/playbooks/legacy/tooz-tox-py27-memcached/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-memcached/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-memcached/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-memcached/run.yaml b/playbooks/legacy/tooz-tox-py27-memcached/run.yaml index 17d88b06..efac94ff 100644 --- a/playbooks/legacy/tooz-tox-py27-memcached/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-memcached/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-memcached from old job gate-tooz-tox-py27-memcached-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-memcached + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-mysql/post.yaml b/playbooks/legacy/tooz-tox-py27-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-mysql/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-mysql/run.yaml b/playbooks/legacy/tooz-tox-py27-mysql/run.yaml index 847a753f..cf79ad99 100644 --- a/playbooks/legacy/tooz-tox-py27-mysql/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-mysql from old job gate-tooz-tox-py27-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml b/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml b/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml index 6da30f8a..46cdf22e 100644 --- a/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-postgresql from old job gate-tooz-tox-py27-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-redis/post.yaml b/playbooks/legacy/tooz-tox-py27-redis/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-redis/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-redis/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-redis/run.yaml b/playbooks/legacy/tooz-tox-py27-redis/run.yaml index b9b31734..f9532af7 100644 --- a/playbooks/legacy/tooz-tox-py27-redis/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-redis/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-redis from old job gate-tooz-tox-py27-redis-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-redis + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml b/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml b/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml index 5abc8b42..cdafab72 100644 --- a/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-sentinel from old job gate-tooz-tox-py27-sentinel-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-sentinel + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml b/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml +++ b/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml b/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml index 7324d090..321d1c8e 100644 --- a/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml +++ b/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py27-zookeeper from old job gate-tooz-tox-py27-zookeeper-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-zookeeper + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-consul/post.yaml b/playbooks/legacy/tooz-tox-py35-consul/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-consul/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-consul/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-consul/run.yaml b/playbooks/legacy/tooz-tox-py35-consul/run.yaml index ac6f6afc..b309af00 100644 --- a/playbooks/legacy/tooz-tox-py35-consul/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-consul/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-consul from old job gate-tooz-tox-py35-consul-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-consul + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-etcd/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd/run.yaml index 93cc19d4..1f76ab7f 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-etcd from old job gate-tooz-tox-py35-etcd-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml index 4de9336b..e9402344 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-etcd3 from old job gate-tooz-tox-py35-etcd3-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd3 + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml index 80ce9674..0e2c1639 100644 --- a/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-etcd3gw from old job gate-tooz-tox-py35-etcd3gw-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd3gw + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-memcached/post.yaml b/playbooks/legacy/tooz-tox-py35-memcached/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-memcached/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-memcached/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-memcached/run.yaml b/playbooks/legacy/tooz-tox-py35-memcached/run.yaml index fcf6af9f..6fd06a13 100644 --- a/playbooks/legacy/tooz-tox-py35-memcached/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-memcached/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-memcached from old job gate-tooz-tox-py35-memcached-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-memcached + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-mysql/post.yaml b/playbooks/legacy/tooz-tox-py35-mysql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-mysql/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-mysql/run.yaml b/playbooks/legacy/tooz-tox-py35-mysql/run.yaml index 1f924caf..de3055fb 100644 --- a/playbooks/legacy/tooz-tox-py35-mysql/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-mysql from old job gate-tooz-tox-py35-mysql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mysql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml b/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml b/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml index d6478895..6b6dc31d 100644 --- a/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-postgresql from old job gate-tooz-tox-py35-postgresql-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-postgresql + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-redis/post.yaml b/playbooks/legacy/tooz-tox-py35-redis/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-redis/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-redis/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-redis/run.yaml b/playbooks/legacy/tooz-tox-py35-redis/run.yaml index 77eab7a2..80d4e2db 100644 --- a/playbooks/legacy/tooz-tox-py35-redis/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-redis/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-redis from old job gate-tooz-tox-py35-redis-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-redis + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml b/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml b/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml index 701c6158..e67bd1c3 100644 --- a/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-sentinel from old job gate-tooz-tox-py35-sentinel-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-sentinel + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml b/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml +++ b/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml b/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml index 6bee01ee..c5b44874 100644 --- a/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml +++ b/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tooz-tox-py35-zookeeper from old job gate-tooz-tox-py35-zookeeper-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-zookeeper + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-build/post.yaml b/playbooks/legacy/tox-build/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tox-build/post.yaml +++ b/playbooks/legacy/tox-build/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-build/run.yaml b/playbooks/legacy/tox-build/run.yaml index 1052eef6..2eefaea8 100644 --- a/playbooks/legacy/tox-build/run.yaml +++ b/playbooks/legacy/tox-build/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-build from old job gate-{name}-tox-build-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-checkniceness/post.yaml b/playbooks/legacy/tox-checkniceness/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tox-checkniceness/post.yaml +++ b/playbooks/legacy/tox-checkniceness/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-checkniceness/run.yaml b/playbooks/legacy/tox-checkniceness/run.yaml index e23a9189..3e713092 100644 --- a/playbooks/legacy/tox-checkniceness/run.yaml +++ b/playbooks/legacy/tox-checkniceness/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-checkniceness from old job gate-{name}-tox-checkniceness-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkniceness + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml b/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml index 5a81ee20..6d5675d6 100644 --- a/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml +++ b/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml b/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml index 64ac6d44..8c92e5ea 100644 --- a/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml +++ b/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-doc-publish-checkbuild from old job gate-{name}-tox-doc-publish-checkbuild tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkbuild + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +74,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publish-checklang/post.yaml b/playbooks/legacy/tox-doc-publish-checklang/post.yaml index 5a81ee20..6d5675d6 100644 --- a/playbooks/legacy/tox-doc-publish-checklang/post.yaml +++ b/playbooks/legacy/tox-doc-publish-checklang/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-doc-publish-checklang/run.yaml b/playbooks/legacy/tox-doc-publish-checklang/run.yaml index fb95b8e1..79f4ffff 100644 --- a/playbooks/legacy/tox-doc-publish-checklang/run.yaml +++ b/playbooks/legacy/tox-doc-publish-checklang/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-doc-publish-checklang from old job gate-{name}-tox-doc-publish-checklang tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,10 +54,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checklang + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +74,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publishlang/post.yaml b/playbooks/legacy/tox-doc-publishlang/post.yaml index fe356df3..3c7d9eff 100644 --- a/playbooks/legacy/tox-doc-publishlang/post.yaml +++ b/playbooks/legacy/tox-doc-publishlang/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-doc-publishlang/run.yaml b/playbooks/legacy/tox-doc-publishlang/run.yaml index 2c2944ed..c84026a4 100644 --- a/playbooks/legacy/tox-doc-publishlang/run.yaml +++ b/playbooks/legacy/tox-doc-publishlang/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-doc-publishlang from old job {name}-tox-doc-publishlang tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishlang + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-with-sudo-snap/post.yaml b/playbooks/legacy/tox-with-sudo-snap/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/tox-with-sudo-snap/post.yaml +++ b/playbooks/legacy/tox-with-sudo-snap/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/tox-with-sudo-snap/run.yaml b/playbooks/legacy/tox-with-sudo-snap/run.yaml index 2bf7b769..1d9136c5 100644 --- a/playbooks/legacy/tox-with-sudo-snap/run.yaml +++ b/playbooks/legacy/tox-with-sudo-snap/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tox-with-sudo-snap from old job gate-{name}-tox-with-sudo-snap tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,14 +39,17 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh snap + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +64,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml index 5a81ee20..6d5675d6 100644 --- a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml +++ b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml @@ -9,9 +9,9 @@ copy_links: true verify_host: true - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml index 1773c0ec..042f613a 100644 --- a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml +++ b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml @@ -3,6 +3,11 @@ job gate-training-guides-tox-doc-publish-checkbuild tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,10 +55,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkbuild + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -66,4 +75,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml b/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml index fe356df3..3c7d9eff 100644 --- a/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml +++ b/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml b/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml index 477fbb3d..a0db791e 100644 --- a/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml +++ b/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml @@ -3,6 +3,11 @@ training-guides-tox-doc-publishdocs tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -35,10 +40,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -48,8 +55,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-labs-scripts/post.yaml b/playbooks/legacy/training-labs-scripts/post.yaml index a28572a3..6a9078be 100644 --- a/playbooks/legacy/training-labs-scripts/post.yaml +++ b/playbooks/legacy/training-labs-scripts/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/dist/' mode: pull copy_links: true diff --git a/playbooks/legacy/training-labs-scripts/run.yaml b/playbooks/legacy/training-labs-scripts/run.yaml index 10b26759..19079afc 100644 --- a/playbooks/legacy/training-labs-scripts/run.yaml +++ b/playbooks/legacy/training-labs-scripts/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-training-labs-scripts from old job training-labs-scripts-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,8 +48,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: ./tools/generate-labs $ZUUL_REFNAME + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tricircle-dsvm-functional/post.yaml b/playbooks/legacy/tricircle-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tricircle-dsvm-functional/post.yaml +++ b/playbooks/legacy/tricircle-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tricircle-dsvm-functional/run.yaml b/playbooks/legacy/tricircle-dsvm-functional/run.yaml index c81f506f..877ad978 100644 --- a/playbooks/legacy/tricircle-dsvm-functional/run.yaml +++ b/playbooks/legacy/tricircle-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tricircle-dsvm-functional from old job gate-tricircle-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml b/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml +++ b/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml b/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml index 0781cee5..84601109 100644 --- a/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml +++ b/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tricircle-dsvm-multiregion from old job gate-tricircle-dsvm-multiregion-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -55,4 +61,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trio2o-dsvm-functional/post.yaml b/playbooks/legacy/trio2o-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/trio2o-dsvm-functional/post.yaml +++ b/playbooks/legacy/trio2o-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trio2o-dsvm-functional/run.yaml b/playbooks/legacy/trio2o-dsvm-functional/run.yaml index 8f7237e4..9aa8f6cd 100644 --- a/playbooks/legacy/trio2o-dsvm-functional/run.yaml +++ b/playbooks/legacy/trio2o-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trio2o-dsvm-functional from old job gate-trio2o-dsvm-functional-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +67,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml +++ b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml index a3bacfb1..c14905aa 100644 --- a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml +++ b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-buildimage-ironic-python-agent-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -30,6 +35,7 @@ openstack/tripleo-puppet-elements \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +45,7 @@ cd python-tripleoclient /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +106,5 @@ mkdir -p $WORKSPACE/logs mv *.log $WORKSPACE/logs executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml +++ b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml index 719320fe..0f29a360 100644 --- a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml +++ b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-buildimage-overcloud-full-centos-7 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -30,6 +35,7 @@ openstack/tripleo-puppet-elements \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +45,7 @@ cd python-tripleoclient /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +106,5 @@ mkdir -p $WORKSPACE/logs mv *.log $WORKSPACE/logs executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml +++ b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml index 465ece75..f3db74bc 100644 --- a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml +++ b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-buildimage-overcloud-hardened-full-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -30,6 +35,7 @@ openstack/tripleo-puppet-elements \ openstack/requirements executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -39,6 +45,7 @@ cd python-tripleoclient /usr/local/jenkins/slave_scripts/install-distro-packages.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -99,4 +106,5 @@ mkdir -p $WORKSPACE/logs mv *.log $WORKSPACE/logs executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml index f7311b92..29ca096d 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-3nodes-multinode-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml index dcdea5f2..692887c3 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-containers-multinode-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml index e4f054bc..17092801 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-containers-multinode tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml index 882ecd68..533c0a59 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-multinode-upgrades tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml index c8c441dc..fdf19062 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-nonha-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml index 6ca7c873..deb6f68e 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml index c069cfe0..d85b6455 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml index 8ed7ef7e..0dfc8cde 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml index 4e3de2f3..5766dc1e 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml index a1fd64de..66ed7163 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-ovb-containers-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml index f9bbfa94..862028e6 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-ovb-convergence-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml index aec09693..019edeb9 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-ovb-fakeha-caserver tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml index 8588b229..820ff1f7 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-ovb-ha-oooq-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml index 49754e9e..44dded39 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-ovb-ha-oooq-ocata tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml index d7941c05..e33a8219 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-ovb-ha-oooq-pike tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml index 4f8707aa..6bb07f16 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-oooq from old job gate-tripleo-ci-centos-7-ovb-ha-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -87,4 +93,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml index 3aefa1e4..58b24f6e 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-ovb-ha-tempest-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml index 5d05bbf3..7bd10664 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml index 183d7212..86f201f9 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml index 718b7cda..727ff11c 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml index 475fb21a..92779617 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml index 8c171d57..a576ae97 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario001-multinode-upgrades tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml index f4658748..355608d6 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml index be363667..b5584f4b 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-container tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml index 1b1583a2..ea5bcbf9 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml index 1757aaac..10137f81 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml index 621e81b1..74fa352a 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario002-multinode-upgrades tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml index 136411fd..be81b295 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml index 4ba10c5f..9f511abf 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-container tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml index 10748997..27fb540f 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml index b2d86b46..9ab57b0b 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml index 37f4e5b1..41bacd2f 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario003-multinode-upgrades tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml index 490dbeef..ba6abef7 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml index dbd82a42..503a9e20 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-container tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml index 6077cd33..78fac0fd 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml index 841d7e62..cfb3648d 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml index 1775926e..86fc48b4 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario005-multinode-oooq-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml index 4651ac62..d18cef1a 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario006-multinode-oooq-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml index b5ef4278..a9d4f381 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq-container-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml index 8695044e..14c99ed8 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml @@ -3,6 +3,11 @@ from old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml index 4d754ae7..0f854e26 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml index 4f8c0560..a0c4be02 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario008-multinode-oooq-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml index 88302b3e..ecc8d875 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml @@ -3,6 +3,11 @@ old job gate-tripleo-ci-centos-7-scenario009-multinode-oooq-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml index b43a8b57..858742e6 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-undercloud-containers-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml index ffd4ad88..c7e983be 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml @@ -3,6 +3,11 @@ gate-tripleo-ci-centos-7-undercloud-oooq tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml index 9467657b..e3e107ca 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/images/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml index 14c9152f..9f6811db 100644 --- a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml @@ -3,6 +3,11 @@ job gate-tripleo-ci-centos-7-undercloud-upgrades-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -88,4 +94,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml index 45d4b763..6265e7fd 100644 --- a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tripleo-ui-nodejs6-npm-run-lint from old job gate-tripleo-ui-nodejs6-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml index a3e8d7ab..b8801885 100644 --- a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-tripleo-ui-nodejs6-npm-run-test from old job gate-tripleo-ui-nodejs6-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml b/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml +++ b/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml b/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml index 58126393..617d2464 100644 --- a/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml +++ b/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml @@ -3,6 +3,11 @@ job gate-trove-legacy-functional-dsvm-mysql-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml +++ b/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml index cc7289b3..60dcc830 100644 --- a/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml +++ b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-legacy-functional-dsvm-mysql from old job gate-trove-legacy-functional-dsvm-mysql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml b/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml +++ b/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml b/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml index 7379001b..1266f4c7 100644 --- a/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml +++ b/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml @@ -3,6 +3,11 @@ job gate-trove-legacy-functional-dsvm-redis-newton tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-pylint/post.yaml b/playbooks/legacy/trove-pylint/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/trove-pylint/post.yaml +++ b/playbooks/legacy/trove-pylint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-pylint/run.yaml b/playbooks/legacy/trove-pylint/run.yaml index ebb5b9ad..1b9c77fb 100644 --- a/playbooks/legacy/trove-pylint/run.yaml +++ b/playbooks/legacy/trove-pylint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-pylint from old job gate-trove-pylint-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -47,8 +54,10 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml index 566aabe8..5de48736 100644 --- a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml @@ -3,6 +3,11 @@ gate-trove-scenario-dsvm-cassandra-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml index 03ea73eb..543eea98 100644 --- a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml @@ -3,6 +3,11 @@ gate-trove-scenario-dsvm-cassandra-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml index f3f617f8..11e23019 100644 --- a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml @@ -3,6 +3,11 @@ gate-trove-scenario-dsvm-couchbase-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml index 5caede50..b54be3b7 100644 --- a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-couchdb-single from old job gate-trove-scenario-dsvm-couchdb-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml index 787f52c9..d29f55d4 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-multi from old job gate-trove-scenario-dsvm-mariadb-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml index 6bcdddab..dc9202ae 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-single from old job gate-trove-scenario-dsvm-mariadb-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml index aaf69586..f5e99187 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mongodb-multi from old job gate-trove-scenario-dsvm-mongodb-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml index 39797b15..b3cbc855 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mongodb-single from old job gate-trove-scenario-dsvm-mongodb-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml index 429bcf2e..e8812ecf 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mysql-multi from old job gate-trove-scenario-dsvm-mysql-multi-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml index 15a51548..0ce0bcbb 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-mysql-single from old job gate-trove-scenario-dsvm-mysql-single-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml index d8d2da2a..9c13aa4d 100644 --- a/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-legacy-scenario-dsvm-mysql from old job gate-trove-legacy-scenario-dsvm-mysql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml index 62e986d4..88166225 100644 --- a/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-percona-multi from old job gate-trove-scenario-dsvm-percona-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml index 6a0844c4..97909b92 100644 --- a/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-percona-single from old job gate-trove-scenario-dsvm-percona-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml index 9b948d9f..89de7a0d 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml @@ -3,6 +3,11 @@ gate-trove-scenario-dsvm-postgresql-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml index d3522a73..4ed4bb7e 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml @@ -3,6 +3,11 @@ gate-trove-scenario-dsvm-postgresql-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml index fc93da49..022d36de 100644 --- a/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml @@ -3,6 +3,11 @@ gate-trove-legacy-scenario-dsvm-postgresql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,6 +34,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml index 0d3f7488..6845861d 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-pxc-multi from old job gate-trove-scenario-dsvm-pxc-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml index 307efe07..ad4e229d 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-pxc-single from old job gate-trove-scenario-dsvm-pxc-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml index 368da182..130cdc45 100644 --- a/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-legacy-scenario-dsvm-pxc from old job gate-trove-legacy-scenario-dsvm-pxc tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml index 7917815e..1a125bc7 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-redis-multi from old job gate-trove-scenario-dsvm-redis-multi-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml index 09449f25..ae4d955e 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-scenario-dsvm-redis-single from old job gate-trove-scenario-dsvm-redis-single-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -61,4 +68,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml index d84381e8..8bbd8a64 100644 --- a/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml +++ b/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-legacy-scenario-dsvm-redis from old job gate-trove-legacy-scenario-dsvm-redis-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -62,4 +69,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-tox-apiexamples/post.yaml b/playbooks/legacy/trove-tox-apiexamples/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/trove-tox-apiexamples/post.yaml +++ b/playbooks/legacy/trove-tox-apiexamples/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-tox-apiexamples/run.yaml b/playbooks/legacy/trove-tox-apiexamples/run.yaml index 525295d4..0f690842 100644 --- a/playbooks/legacy/trove-tox-apiexamples/run.yaml +++ b/playbooks/legacy/trove-tox-apiexamples/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-tox-apiexamples from old job gate-trove-tox-apiexamples-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh apiexamples + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-tox-fakemodetests/post.yaml b/playbooks/legacy/trove-tox-fakemodetests/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/trove-tox-fakemodetests/post.yaml +++ b/playbooks/legacy/trove-tox-fakemodetests/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/trove-tox-fakemodetests/run.yaml b/playbooks/legacy/trove-tox-fakemodetests/run.yaml index 7a00851c..daf16883 100644 --- a/playbooks/legacy/trove-tox-fakemodetests/run.yaml +++ b/playbooks/legacy/trove-tox-fakemodetests/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-trove-tox-fakemodetests from old job gate-trove-tox-fakemodetests-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh fakemodetests + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/upstream-translation-update/post.yaml b/playbooks/legacy/upstream-translation-update/post.yaml index 52a9f8fb..dd54b695 100644 --- a/playbooks/legacy/upstream-translation-update/post.yaml +++ b/playbooks/legacy/upstream-translation-update/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/' mode: pull copy_links: true @@ -20,9 +20,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -33,9 +33,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -46,9 +46,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -59,9 +59,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -72,9 +72,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -85,9 +85,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/upstream-translation-update/run.yaml b/playbooks/legacy/upstream-translation-update/run.yaml index 26d9239a..222e8697 100644 --- a/playbooks/legacy/upstream-translation-update/run.yaml +++ b/playbooks/legacy/upstream-translation-update/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-upstream-translation-update from old job {name}-upstream-translation-update tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | cd / @@ -9,6 +14,7 @@ mkdir $WORKSPACE cd $WORKSPACE executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -18,6 +24,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,6 +59,7 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -60,4 +68,5 @@ set -x /usr/local/jenkins/slave_scripts/upstream_translation_update.sh $ZUUL_SHORT_PROJECT_NAME {name}-upstream-translation-update executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-draft/post.yaml b/playbooks/legacy/vinz-webclient-js-draft/post.yaml index dcdc881d..fcbc7fa1 100644 --- a/playbooks/legacy/vinz-webclient-js-draft/post.yaml +++ b/playbooks/legacy/vinz-webclient-js-draft/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/vinz-webclient-js-draft/run.yaml b/playbooks/legacy/vinz-webclient-js-draft/run.yaml index 820c62bc..c00fd3da 100644 --- a/playbooks/legacy/vinz-webclient-js-draft/run.yaml +++ b/playbooks/legacy/vinz-webclient-js-draft/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vinz-webclient-js-draft from old job gate-vinz-webclient-js-draft tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build:draft + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,4 +95,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml b/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml +++ b/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml b/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml index 106d97c5..18af4639 100644 --- a/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml +++ b/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vinz-webclient-js-release-branch from old job vinz-webclient-js-release-branch tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +99,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-release-master/post.yaml b/playbooks/legacy/vinz-webclient-js-release-master/post.yaml index 9c13a7dd..2d524c18 100644 --- a/playbooks/legacy/vinz-webclient-js-release-master/post.yaml +++ b/playbooks/legacy/vinz-webclient-js-release-master/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ mode: pull copy_links: true diff --git a/playbooks/legacy/vinz-webclient-js-release-master/run.yaml b/playbooks/legacy/vinz-webclient-js-release-master/run.yaml index e0653a31..73a2742e 100644 --- a/playbooks/legacy/vinz-webclient-js-release-master/run.yaml +++ b/playbooks/legacy/vinz-webclient-js-release-master/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vinz-webclient-js-release-master from old job vinz-webclient-js-release-master tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -u @@ -26,6 +31,7 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +60,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -67,10 +75,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -89,4 +99,5 @@ cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml b/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml index 43f25b13..245cd291 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vitrage-dsvm-api-py27 from old job gate-vitrage-dsvm-api-py27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml b/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml index e6f7ee2b..e370b8e1 100644 --- a/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vitrage-dsvm-api-py35 from old job gate-vitrage-dsvm-api-py35-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml index b68114ae..925f40f2 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vitrage-dsvm-datasources-py27 from old job gate-vitrage-dsvm-datasources-py27-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml index b9f178f5..c625abc3 100644 --- a/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml +++ b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-vitrage-dsvm-datasources-py35 from old job gate-vitrage-dsvm-datasources-py35-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -33,6 +39,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -71,4 +78,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/watcher-dsvm-multinode/post.yaml b/playbooks/legacy/watcher-dsvm-multinode/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/watcher-dsvm-multinode/post.yaml +++ b/playbooks/legacy/watcher-dsvm-multinode/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/watcher-dsvm-multinode/run.yaml b/playbooks/legacy/watcher-dsvm-multinode/run.yaml index 7baf3b9c..df5617fa 100644 --- a/playbooks/legacy/watcher-dsvm-multinode/run.yaml +++ b/playbooks/legacy/watcher-dsvm-multinode/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-watcher-dsvm-multinode from old job gate-watcher-dsvm-multinode-ubuntu-xenial-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -30,6 +36,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -56,4 +63,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/watcherclient-dsvm-functional/post.yaml b/playbooks/legacy/watcherclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/watcherclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/watcherclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/watcherclient-dsvm-functional/run.yaml b/playbooks/legacy/watcherclient-dsvm-functional/run.yaml index d6dcc2fc..f7995169 100644 --- a/playbooks/legacy/watcherclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/watcherclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-watcherclient-dsvm-functional from old job gate-watcherclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -53,4 +60,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-buildimages/run.yaml b/playbooks/legacy/windmill-buildimages/run.yaml index 17c44cc1..ffa0b746 100644 --- a/playbooks/legacy/windmill-buildimages/run.yaml +++ b/playbooks/legacy/windmill-buildimages/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-windmill-buildimages from old job gate-windmill-buildimages-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -19,8 +24,10 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org openstack/windmill executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh buildimages + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy-centos-7/run.yaml b/playbooks/legacy/windmill-deploy-centos-7/run.yaml index c82f4858..80dfa12b 100644 --- a/playbooks/legacy/windmill-deploy-centos-7/run.yaml +++ b/playbooks/legacy/windmill-deploy-centos-7/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-windmill-deploy-centos-7 from old job gate-windmill-deploy-centos-7-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -19,8 +24,10 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org openstack/windmill executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy-fedora-26/run.yaml b/playbooks/legacy/windmill-deploy-fedora-26/run.yaml index 1a6a736c..0d56904b 100644 --- a/playbooks/legacy/windmill-deploy-fedora-26/run.yaml +++ b/playbooks/legacy/windmill-deploy-fedora-26/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-windmill-deploy-fedora-26 from old job gate-windmill-deploy-fedora-26 tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -19,8 +24,10 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org openstack/windmill executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy/run.yaml b/playbooks/legacy/windmill-deploy/run.yaml index cf196c7e..9f34ea6b 100644 --- a/playbooks/legacy/windmill-deploy/run.yaml +++ b/playbooks/legacy/windmill-deploy/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-windmill-deploy from old job gate-windmill-deploy-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -19,8 +24,10 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org openstack/windmill executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-tox-integration/post.yaml b/playbooks/legacy/zaqar-tox-integration/post.yaml index 749aafe1..dd962af3 100644 --- a/playbooks/legacy/zaqar-tox-integration/post.yaml +++ b/playbooks/legacy/zaqar-tox-integration/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true diff --git a/playbooks/legacy/zaqar-tox-integration/run.yaml b/playbooks/legacy/zaqar-tox-integration/run.yaml index e0a3e1da..150d48e1 100644 --- a/playbooks/legacy/zaqar-tox-integration/run.yaml +++ b/playbooks/legacy/zaqar-tox-integration/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zaqar-tox-integration from old job gate-zaqar-tox-integration-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -34,10 +39,12 @@ cp $REQS_DIR/upper-constraints.txt ./ fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -45,6 +52,7 @@ if [ -x tools/test-setup.sh ] ; then tools/test-setup.sh fi + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -54,10 +62,12 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh integration + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -72,4 +82,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml index ad4a7bc8..f66f9185 100644 --- a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zaqar-ui-nodejs4-npm-run-lint from old job gate-zaqar-ui-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml index 1c3b6cf9..10e6b0cc 100644 --- a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zaqar-ui-nodejs4-npm-run-test from old job gate-zaqar-ui-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml b/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml index 0745ef24..c631a91d 100644 --- a/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml +++ b/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml b/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml index db9b0d68..7e737749 100644 --- a/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml +++ b/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zaqarclient-dsvm-functional from old job gate-zaqarclient-dsvm-functional-ubuntu-xenial tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -63,4 +70,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml index e0ecb38f..f85bd9e7 100644 --- a/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml +++ b/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml @@ -7,9 +7,9 @@ state: directory delegate_to: localhost - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' mode: pull copy_links: true diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml index ff7e3b09..31e0254c 100644 --- a/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml +++ b/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zmq-event-publisher-hpi-artifact from old job zmq-event-publisher-hpi-artifact tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -41,6 +48,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ mvn clean package -B -Dproject-version=$PROJECT_VER cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml b/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml index f8c66278..e7c5bd82 100644 --- a/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml +++ b/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml @@ -3,6 +3,11 @@ zmq-event-publisher-jenkinsci-upload tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -x @@ -10,6 +15,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -28,4 +34,5 @@ /usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \ $FILENAME_POM $FILENAME_HPI executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml b/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml index 2492542e..84e53f52 100644 --- a/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml +++ b/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml @@ -3,6 +3,11 @@ old job gate-zmq-event-publisher-maven-build-ubuntu-trusty tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -29,10 +34,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -42,6 +49,7 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -52,4 +60,5 @@ source version.properties mvn clean package -B -Dproject-version=$PROJECT_VER executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml index f734a562..a6a49329 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zun-devstack-dsvm-docker-etcd from old job gate-zun-devstack-dsvm-docker-etcd-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml index 72648d00..05883c1e 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml @@ -3,6 +3,11 @@ job gate-zun-devstack-dsvm-docker-split-plugin-sql-nv tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -16,6 +21,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -29,6 +35,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -68,4 +75,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml index f867d681..f4e1898c 100644 --- a/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zun-devstack-dsvm-docker-sql from old job gate-zun-devstack-dsvm-docker-sql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -65,4 +72,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml index 9d42ea36..121600bc 100644 --- a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml +++ b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zun-devstack-dsvm-py35-docker-sql from old job gate-zun-devstack-dsvm-py35-docker-sql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -32,6 +38,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -70,4 +77,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml index d2a8a562..d3188d3e 100644 --- a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zun-ui-nodejs4-npm-run-lint from old job gate-zun-ui-nodejs4-npm-run-lint tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml index 51dc23fb..a7bf9635 100644 --- a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml index 84e579e8..052d1ae2 100644 --- a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zun-ui-nodejs4-npm-run-test from old job gate-zun-ui-nodejs4-npm-run-test tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,10 +33,12 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org $ZUUL_PROJECT executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -58,24 +65,28 @@ node --version npm --version executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y xvfb + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y chromium-browser + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | sudo apt-get update sudo apt-get install -y firefox dbus + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -85,12 +96,14 @@ # Prove that general sudo access is actually revoked ! sudo -n true executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: | DIMENSIONS='1280x1024x24' /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -116,6 +129,7 @@ npm shrinkwrap fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -130,4 +144,5 @@ exit 0 # TODO: change to 1 to fail tests. fi executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml index 958de215..502ff570 100644 --- a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml +++ b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true diff --git a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml index 38d7c5f6..f66e9316 100644 --- a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml +++ b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zunclient-devstack-dsvm-docker-sql from old job gate-zunclient-devstack-dsvm-docker-sql tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -15,6 +20,7 @@ git://git.openstack.org \ openstack-infra/devstack-gate executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -27,6 +33,7 @@ EOF executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: @@ -64,4 +71,5 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zuul-nodepool/post.yaml b/playbooks/legacy/zuul-nodepool/post.yaml index b4daeed5..ac24a113 100644 --- a/playbooks/legacy/zuul-nodepool/post.yaml +++ b/playbooks/legacy/zuul-nodepool/post.yaml @@ -1,9 +1,9 @@ - hosts: all tasks: - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -14,9 +14,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -27,9 +27,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -40,9 +40,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}' mode: pull copy_links: true @@ -53,9 +53,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/tox' mode: pull copy_links: true @@ -66,9 +66,9 @@ - --exclude=* - --prune-empty-dirs - - name: Copy files from {{ ansible_user_dir }}/ on node + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node synchronize: - src: '{{ ansible_user_dir }}/' + src: '{{ ansible_user_dir }}/workspace/' dest: '{{ zuul.executor.log_root }}/logs' mode: pull copy_links: true diff --git a/playbooks/legacy/zuul-nodepool/run.yaml b/playbooks/legacy/zuul-nodepool/run.yaml index d8d8dd06..201ad98b 100644 --- a/playbooks/legacy/zuul-nodepool/run.yaml +++ b/playbooks/legacy/zuul-nodepool/run.yaml @@ -2,6 +2,11 @@ name: Autoconverted job legacy-zuul-nodepool from old job gate-zuul-nodepool tasks: + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + - shell: cmd: | set -e @@ -28,16 +33,20 @@ /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ git://git.openstack.org openstack-infra/zuul executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: tools/nodepool-integration-setup.sh + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' - shell: cmd: /usr/local/jenkins/slave_scripts/run-tox.sh nodepool + chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}'