Tristan Cacqueray 59c5820fa6 Add phoronix-test-suite job
This change adds new jobs to run and combine phoronix test suite results.

Co-Authored-By: Nicolas Hicher <nhicher@redhat.com>
Change-Id: If94cdbd91c8d80393a71cd5c36690563de9edcd6
2020-04-03 13:03:07 +00:00

30 lines
722 B
YAML

---
- name: Set phoronix log path
set_fact:
log_path: "{{ zuul.executor.log_root }}/"
when: log_path is not defined
- name: Discover the last result path
shell: |
set -o pipefail
ls -td ~/test-results/* | head -n 1
args:
executable: /bin/bash
register: result_path
- name: Collect phoronix result
synchronize:
src: "{{ result_path.stdout }}/"
dest: "{{ log_path }}/phoronix-results-{{ ansible_hostname }}/"
mode: pull
- name: Return site artifact location to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "Phoronix test result"
metadata:
type: phoronix_result
url: "phoronix-results-{{ ansible_hostname }}/"