From f03aea73768dbe7a9f63d3e9d894fc54b6bb2183 Mon Sep 17 00:00:00 2001 From: norangebit Date: Wed, 8 Jan 2020 20:44:22 +0100 Subject: [PATCH] add clean pipeline --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.drone.yml b/.drone.yml index 5db0a51..e437168 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,3 +35,39 @@ volumes: - name: android host: path: /home/drone/Android/Sdk + +trigger: + branch: + exclude: + - master + +--- +kind: pipeline +type: docker +name: clean + +steps: +- name: build + image: nextcloudci/android:android-49 + commands: + - ./gradlew build + +- name: notify + image: appleboy/drone-telegram + settings: + token: + from_secret: telegram_token + to: + from_secret: telegram_user + format: markdown + message: | + Build [#{{build.number}}]({{build.link}}) from commit [{{truncate commit.sha 10}}]({{commit.link}}) on {{commit.branch}} **failed**. + {{uppercasefirst commit.author}} please fix me! + when: + status: + - failure + +trigger: + branch: + include: + - master