How to allow failure of an individual step


#1

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

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