From 0d5e906f0b495be3f5dc2f911147053aa0e59dcd Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 24 Apr 2020 20:24:11 -0400 Subject: [PATCH] Discord Notification --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index eb30bb239..b491460d2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -716,3 +716,25 @@ stages: codeCoverageTool: 'cobertura' summaryFileLocation: './CoverageResults/combined/Cobertura.xml' reportDirectory: './CoverageResults/combined/' + + - stage: Report_Out + dependsOn: + - Analyze + - Unit_Test + - Integration + - Automation + condition: always() + displayName: Build Status Report + jobs: + - job: + displayName: Discord Notification + pool: + vmImage: 'ubuntu-18.04' + steps: + - checkout: none + - powershell: | + iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/Servarr/AzureDiscordNotify/master/DiscordNotify.ps1')) + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + DISCORDCHANNELID: $(discordChannelId) + DISCORDWEBHOOKKEY: $(discordWebhookKey)