cbd1a97e24
We have some tests that failed recently because the workflows where already finished while we were trying to update them. The update (e.g. set it in error) can only happen if the wf is not yet finished. Change-Id: I600f4e6616233b7ff62f51b158115bc370ff3591 Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
66 lines
889 B
YAML
Executable File
66 lines
889 B
YAML
Executable File
---
|
|
version: '2.0'
|
|
|
|
wf:
|
|
type: direct
|
|
|
|
tasks:
|
|
hello:
|
|
action: std.echo output="Hello"
|
|
wait-before: 1
|
|
publish:
|
|
result: <% task(hello).result %>
|
|
|
|
wflong:
|
|
type: direct
|
|
|
|
tasks:
|
|
hello:
|
|
action: std.echo output="Hello"
|
|
wait-before: 60
|
|
publish:
|
|
result: <% task(hello).result %>
|
|
|
|
wf1:
|
|
type: reverse
|
|
input:
|
|
- farewell
|
|
|
|
tasks:
|
|
addressee:
|
|
action: std.echo output="John"
|
|
publish:
|
|
name: <% task(addressee).result %>
|
|
|
|
goodbye:
|
|
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
|
requires: [addressee]
|
|
|
|
wf2:
|
|
type: direct
|
|
|
|
tasks:
|
|
hello:
|
|
action: std.echo output="Doe"
|
|
|
|
subwf1:
|
|
type: direct
|
|
|
|
tasks:
|
|
task1:
|
|
workflow: subwf2
|
|
|
|
subwf2:
|
|
type: direct
|
|
|
|
tasks:
|
|
task1:
|
|
workflow: subwf3
|
|
|
|
subwf3:
|
|
type: direct
|
|
|
|
tasks:
|
|
task1:
|
|
action: std.noop
|