ci: add Discord notifiction on failure

Depends on: https://github.com/status-im/status-jenkins-lib/pull/83

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-02-13 12:17:42 +01:00
parent a962014c58
commit bad9bbfc39
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
library 'status-jenkins-lib@v1.8.1' library 'status-jenkins-lib@v1.8.6'
pipeline { pipeline {
@ -181,6 +181,12 @@ pipeline {
]) ])
updateGitHubStatus() updateGitHubStatus()
} } } }
failure { script {
discord.send(
header: '**Desktop E2E test failure!**',
cred: 'discord-status-desktop-e2e-webhook',
)
} }
cleanup { cleanWs() } cleanup { cleanWs() }
} }
} }