Skip to content

Commit 106fad6

Browse files
committed
Work CD-CI
- Add Discord webhook call to report build failure. Signed-off-by: José Simões <[email protected]>
1 parent 559b513 commit 106fad6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,25 @@ jobs:
285285
githubReleaseAsset: '$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
286286
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), not(contains(variables['Build.SourceBranch'], 'preview') ) )
287287
displayName: Create/Update GitHub stable release
288+
289+
##################################
290+
# report build failure to Discord
291+
- job: Report_Build_Failure
292+
dependsOn:
293+
- Check_Build_Options
294+
- Build_tool
295+
condition: or( failed('Check_Build_Options'), failed('Build_tool') )
296+
297+
pool:
298+
vmImage: 'VS2017-Win2016'
299+
300+
steps:
301+
302+
- checkout: self
303+
304+
# step from template @ nf-tools repo
305+
- template: azure-pipelines-templates/discord-webhook.yml@templates
306+
parameters:
307+
status: 'failure'
308+
webhookUrl: '$(DiscordWebhook)'
309+
message: ''

0 commit comments

Comments
 (0)