-
Notifications
You must be signed in to change notification settings - Fork 4
/
c0052.yml
48 lines (42 loc) · 950 Bytes
/
c0052.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
doc_meta: |
folder: shell-func
title: ignore error
head: |
Showcase you can use ignoreError flag to ignore the failed step and continue
sections:
- title: Demo
log: yes
related:
refs:
- title: shell func
link: ../../quick-start/c0002/
- title: error handling
link: ../../test-debug/error_handling/
notes:
goal:
- workflow status management
- configurable to stop on fail
- configurable to ignore and continue
tasks:
-
name: task
task:
- func: shell
flags:
- ignoreError
do:
- echo "step1"
- echo "step2" |grep notexist
- echo "step3"
- func: shell
flags:
- ignoreError
do:
- echo "step4"
- echo "step5" |grep notexist
- echo "step6"
- func: shell
do:
- echo "step7"
- echo "step8"
- echo "step9"