Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 00564413 authored by Tobias Kaminsky's avatar Tobias Kaminsky Committed by GitHub
Browse files

Merge pull request #103 from nextcloud/notifiy

Notify on fail
parents 2fed0b3e e733d53e
Loading
Loading
Loading
Loading
+24 −8
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ pipeline:
      # - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
      # - emulator -avd test -no-window &
      # - ./wait_for_emulator.sh
      
      # build app 
      - ./gradlew clean build

@@ -22,4 +23,19 @@ pipeline:
        - scripts/lint/lint-up-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER
      secrets: [ GIT_USERNAME, GIT_TOKEN, LOG_USERNAME, LOG_PASSWORD ]

  notify:
        image: drillster/drone-email
        host: $EMAIL_HOST
        port: 587
        username: $EMAIL_USERNAME
        password: $EMAIL_PASSWORD
        from: nextcloud-drone@kaminsky.me
        recipients_only: true
        recipients: [ $EMAIL_RECIPIENTS ]
        secrets: [ EMAIL_USERNAME, EMAIL_PASSWORD, EMAIL_RECIPIENTS, EMAIL_HOST ]
        when:
          event: push
          status: failure
          branch: master

branches: master