zuul-jobs/test-playbooks/javascripts/fetch-javascript-tarball.yaml
Ian Wienand 58a8d1a119
ansible-lint: add names to blocks/includes, etc.
This adds names to blocks and includes for consistency.  We've done
this before (e.g. Ia7e490aaba99da9694a6f3fdb1bca9838221b30a) but I
guess 6.12.0 is finding more...

Change-Id: Ib451f6d3c5a18047873e63aa0a1aa2b425846fec
2023-02-03 15:06:03 +11:00

31 lines
975 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
args:
warn: false
tasks:
- name: Run fetch-javascript-tarball
import_role:
name: fetch-javascript-tarball
vars:
project_ver: master
- name: Run fetch-output
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