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