ensure notification runs always
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Robert Kaussow 2020-01-19 00:44:17 +01:00
parent 753e8baf06
commit 51518e2c70
2 changed files with 8 additions and 1 deletions

View File

@ -122,6 +122,9 @@ local PipelineNotifications(depends_on=[]) = {
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},
when: {
status: ['success', 'failure'],
},
},
],
trigger: {

View File

@ -117,6 +117,10 @@ steps:
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
@ -131,6 +135,6 @@ depends_on:
---
kind: signature
hmac: 3c6e41044e4eb72de9b2f0dc5773074e5fc64ed979c06fc13b2287d1f1b7cb15
hmac: 824a75171bdbd04a8fd94e0d3e5af270025f9be0b42e225db1c34cdbfe386ae8
...