update drone config

This commit is contained in:
Ruan Bekker 2019-04-18 18:37:27 +02:00 committed by GitHub
parent 1d0bceef51
commit 9bd727beba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,11 +12,20 @@ pipeline:
commands:
- echo "running env command"
- env
slack:
slack
image: plugins/slack
channel: system_events
webhook:
from_secret: slack_webhook
when:
status: [ success, failure ]
channel: system_events
icon_emoji: :male-police-officer:
template: >
{{#success build.status}}
build {{build.number}} status: *{{uppercase build.status}}*
by: {{lowercase build.author}}
more info: {{build.link}}
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
when:
status: [ success, failure ]