mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 09:45:12 +00:00
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:
parent
b756e594ab
commit
0fde46acc0
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -83,10 +83,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
post {
|
post {
|
||||||
success { script {
|
always { script {
|
||||||
if (params.DISCORD_WEBHOOK_CRED) {
|
if (params.DISCORD_WEBHOOK_CRED) {
|
||||||
|
def result = currentBuild.result.toLowerCase() ?: 'unknown'
|
||||||
discordNotify(
|
discordNotify(
|
||||||
header: 'SpiffWorkflow Docker image published!',
|
header: "SpiffWorkflow Docker image build ${result}!",
|
||||||
cred: params.DISCORD_WEBHOOK_CRED,
|
cred: params.DISCORD_WEBHOOK_CRED,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user