zuul-jobs/roles/phoronix-combine-results/tasks/main.yaml
Albin Vass bee0c6ae2f ansible-lint: use matchplay instead of matchtask
For some reason matchtask doesn't match includes, matchplay does so use
that instead.

Change-Id: I040f7f3394503e92d06c05e8ff671a43b14baebc
2020-05-05 20:42:38 +02:00

22 lines
578 B
YAML

---
- name: Fetch previous result
include_tasks: fetch-result.yaml
when:
- zj_artifact.metadata is defined
- zj_artifact.metadata.type is defined
- zj_artifact.metadata.type == "phoronix_result"
loop: "{{ zuul.artifacts }}"
loop_control:
loop_var: zj_artifact
- name: List previous result name
command: "ls {{ ansible_env.HOME }}/test-results/"
register: previous_results
- name: Merge result
shell: |
set -o pipefail
yes | phoronix-test-suite merge-results {{ ' '.join(previous_results.stdout_lines) }}
args:
executable: /bin/bash