When pipelines are skipped by exit code 78 (please add this to the http://docs.drone.io/), any subsequent steps are still run if they check for status: success
, ie:
- name: slack
image: alpine
commands:
- exit 78
- name: slack
image: plugins/slack
...
when:
status:
- success
- failure
This is because the pipeline state is still “success”:
It would be helpful if exit 78 can mark status as skipped
.
Further more:
- For auto cancelled jobs, mark status as
auto-cancelled
- For manually cancelled jobs, mark status as
user-cancelled
Then you can do something to check for status like:
- name: example
...
when:
status:
- success
- failure
- cancelled # both auto-cancelled and user-cancelled
- auto-cancelled
- user-cancelled
- skipped
See: