rally-openstack/tests/ci/playbooks/roles/fetch-rally-task-results/tasks/main.yaml

49 lines
1.2 KiB
YAML

- name: Gzip results files
become: yes
become_user: stack
shell: "gzip * -9 -q"
args:
chdir: '{{ rally_results_dir }}'
- name: Gzip custom plugins
become: yes
become_user: stack
shell: "tar -czf {{ rally_results_dir }}/plugins.tar.gz ./plugins"
args:
chdir: '{{ rally_home_dir }}'
- name: Copy Rally results
become: yes
synchronize:
src: '{{ rally_results_dir }}'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/**
- --include=*/
- --exclude=*
- --prune-empty-dirs
- name: Change the status message
become: yes
shell:
cmd: |
set -e
#sed -i -- "s/var errorMessage = null\;/var errorMessage = \'TBD\';/g" {{ zuul.projects['git.openstack.org/openstack/rally-openstack'].src_dir }}/tests/ci/pages/task-index.html
- name: Put index.html in the right place
become: yes
synchronize:
src: "{{ zuul.projects['git.openstack.org/openstack/rally-openstack'].src_dir }}/tests/ci/pages/task-index.html"
dest: '{{ zuul.executor.log_root }}/index.html'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/**
- --include=*/
- --exclude=*
- --prune-empty-dirs