From 31779f491f8edd40c87c52f9a6a9245268f4c48d Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 7 Jun 2019 06:42:06 +0200 Subject: [PATCH] Added notifications to drone.yml. --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index b06887b..c36a27f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,3 +10,26 @@ steps: - PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -DDEBUG -DMQTT_ENABLE -DMQTT_REPORT_METRICS" pio run - PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -UDEBUG -UMQTT_ENABLE -UMQTT_REPORT_METRICS" pio run - PLATFORMIO_BUILD_FLAGS="-DCONFIG_USABLE -DDEBUG -DMQTT_ENABLE -DMQTT_REPORT_METRICS" pio run --environment=esp32 + + - name: Notify + image: plugins/matrix + settings: + homeserver: https://matrix.schle.nz + roomid: "!eBdjaXDkatJWoHYdTj:schle.nz" + username: + from_secret: matrix_username + password: + from_secret: matrix_password + template: > + Built {{commit.branch}} @{{truncate build.commit 7}}: {{commit.message}} + + {{#success build.status}} + Build {{build.number}} succeeded. Good job! + {{else}} + Build {{build.number}} failed. See {{build.link}} for more information. + {{/success}} + + {{build.message}} + + when: + status: [success, failure]