How to ignore steps that fail?

Normally when a pipeline step fails, it fails the overall pipeline. You can allow a step to fail without failing the overall pipeline with the following configuration:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
kind: pipeline
type: docker
name: default

steps:
- name: foo
  image: alpine
  failure: ignore
  commands:
  - echo foo
  - exit 1

- name: bar
  image: alpine
  commands:
  - echo bar