How to allow failure of an individual step

In some cases you may want to allow a step to fail, without failing the entire pipeline. You can instruct Drone to ignore failure of an individual step using the failure: ignore attribute. See the following example:

kind: pipeline
name: default

  - name: foo
    image: alpine:3.8
+   failure: ignore
      - echo this is a failing step
      - exit 1
  - name: bar
    image: alpine:3.8
      - echo done
1 Like