9204e7d1d8
This change enables using fetch-javascript role along with the fetch-output role. By default the role still synchronizes artifacts back to the executor. Change-Id: I8450ecf91b3387445ebe2436754d1b88f2a77844
27 lines
873 B
YAML
27 lines
873 B
YAML
- hosts: all
|
|
pre_tasks:
|
|
- name: Create fake tarball
|
|
shell: |
|
|
mkdir -p {{ zuul.project.src_dir }}
|
|
tar czf {{ zuul.project.src_dir }}/dist.tgz /etc/os-release
|
|
tasks:
|
|
- import_role:
|
|
name: fetch-javascript-tarball
|
|
vars:
|
|
project_ver: master
|
|
- import_role:
|
|
name: fetch-output
|
|
when: zuul_use_fetch_output
|
|
post_tasks:
|
|
- name: Check for artifact on the test instance
|
|
stat:
|
|
path: "{{ ansible_user_dir }}/zuul-output/artifacts/zuul-jobs-latest.tar.gz"
|
|
register: _test_artifact
|
|
failed_when: not _test_artifact.stat.exists
|
|
- name: Check for artifact on the executor
|
|
stat:
|
|
path: "{{ zuul.executor.work_root }}/artifacts/zuul-jobs-latest.tar.gz"
|
|
delegate_to: localhost
|
|
register: _executor_artifact
|
|
failed_when: not _executor_artifact.stat.exists
|