9501f7589a
Introduce new IR plugin option '--failfast' to abort execution at the first failing workflow step Change-Id: Ia79968cf7846f33fdaa05ac5bd511b614ae0784a
32 lines
699 B
YAML
32 lines
699 B
YAML
---
|
|
|
|
- name: 'set step variables'
|
|
set_fact:
|
|
'{{ item.0 }}': '{{ item.1 }}'
|
|
loop: '{{ test_step | dictsort }}'
|
|
loop_control:
|
|
label: '{{ item.0 }} = {{ item.1 }}'
|
|
|
|
|
|
- name: 'set test step index'
|
|
set_fact:
|
|
tox_step_index: "{{ (tox_step_index | int) + 1 }}"
|
|
when:
|
|
- (test_workflow_steps | length) > 1
|
|
|
|
|
|
- block:
|
|
- name: '{{ test_step.tox_description }}'
|
|
include_role:
|
|
name: tobiko-tox
|
|
|
|
rescue:
|
|
- name: "add step failure: '{{ tox_step_name }}'"
|
|
set_fact:
|
|
test_step_failures: '{{ test_step_failures + [test_step] }}'
|
|
|
|
- name: "abort execution at first failure"
|
|
debug: var=test_step
|
|
when: test_failfast
|
|
failed_when: yes
|