Merge pull request #295 from sartography/ci/notify-discord-for-all-builds

ci: sent Discord notifications for all builds
This commit is contained in:
Kevin Burnett 2023-06-01 18:18:00 +00:00 committed by GitHub
commit c95f602cfc

5
Jenkinsfile vendored
View File

@ -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,
) )
} }