[solved] How to continue the rest pipeline even if previous pipeline fails?

Is there a way to not to halt a pipeline even if previous pipeline fails?
The “status” tag is for steps in a pipeline.
https://docs.drone.io/user-guide/pipeline/conditions/#by-status

In my case, I have several pipelines with dependency.
I have enabled the depends_on on each pipeline making only one pipeline is running at a time.
But if former pipeline fails, the whole test process halts.

Any one can help on that?

you can use the trigger section [1] to configure a pipeline to trigger on success and failure, like this:

kind: pipeline
type: docker
name: main

steps:
- name: test
  image: alpine
  commands:
  - echo hello
  - exit 1 # force failure
---
kind: pipeline
type: docker
name: after

steps:
- name: notify
  image: plugins/slack
  settings: ...

trigger:
  status:  # always run pipeline regardless of status
  - success
  - failure

depends_on:
- main

[1] Triggers | Drone

1 Like