From 832b5a36fac468ba3ab3b807f88fe6a045d82c10 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Thu, 14 Jun 2018 11:12:35 -0400 Subject: [PATCH] Add slack notifications --- .circleci/config.yml | 9 +++++++++ vsts.yml | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 02e5f89f2..962e25d18 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -315,3 +315,12 @@ workflows: - electron-linux-arm64-release-nightly - electron-linux-ia32-release-nightly - electron-linux-x64-release-nightly + +experimental: + notify: + branches: + only: + - master + - 2-0-x + - 1-8-x + - 1-7-x diff --git a/vsts.yml b/vsts.yml index 53ce780e2..7ab20d619 100644 --- a/vsts.yml +++ b/vsts.yml @@ -80,4 +80,12 @@ steps: searchFolder: junit condition: and(always(), ne(variables['ELECTRON_RELEASE'], '1')) +- task: kasunkodagoda.slack-notification.slack-notification-task.SlackNotification@3 + displayName: Post Slack Notification + inputs: + SlackApiToken: '$(slack_token)' + Channel: '#bot-nightly-releases' + Message: '$(Build.DefinitionName)-$(Build.BuildNumber) finished with a $(Agent.JobStatus) status.' + condition: and(always(), eq(variables['Build.Reason'], 'Schedule')) + - task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3