Drone

RFC: Failure step without stopping

Pipelines have some steps which important to prevent merging PR, but not important to run tests.
Code style checking for example.
Today i can ignore failure of step but it will stop build. I want to not stop build, but fail whole build.

ashwilliams1 in https://github.com/drone/drone/issues/2888 believe this capability already exists, but i can’t find any reflection in documentations about this.

I want to not stop build, but fail whole build.

the following yaml demonstrates how you can execute pipeline steps even with the pipeline status is failure.

kind: pipeline
type: docker
name: test

steps:
- name: one
  image: alpine:3.8
  commands:
  - echo hello
  - exit 1

- name: two
  image: alpine:3.8
  when:
    status: [ success, failure ]
  commands:
  - echo world

and the results:

$ drone exec
[one:0] + echo hello
[one:1] hello
[one:2] + exit 1
[two:0] + echo world
[two:1] world
exit code 1