ci: sent Discord notifications for all builds

Just for more clarity on build status. No more guessing.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-06-01 20:15:45 +02:00
parent 08f1cd8e50
commit 99911cba6f
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -83,10 +83,11 @@ pipeline {
}
} }
post {
success { script {
always { script {
if (params.DISCORD_WEBHOOK_CRED) {
def result = currentBuild.result.toLowerCase() ?: 'unknown'
discordNotify(
header: 'SpiffWorkflow Docker image published!',
header: "SpiffWorkflow Docker image build ${result}!",
cred: params.DISCORD_WEBHOOK_CRED,
)
}