From 0c945c7eea9dcdef5b2f25954ba0ff8083774437 Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 2 Apr 2024 13:43:34 -0400 Subject: [PATCH] fixed jenkinsfile syntax w/ burnettk --- Jenkinsfile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 61a96b6c0..d13f15a92 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -85,16 +85,18 @@ pipeline { } } // stages post { - always { script { - sh 'docker image prune -f' } - if (params.DISCORD_WEBHOOK_CRED) { - def result = currentBuild.result.toLowerCase() ?: 'unknown' - discordNotify( - header: "SpiffWorkflow Docker image build ${result}!", - cred: params.DISCORD_WEBHOOK_CRED, - ) - } - } } + always { + script { + sh 'docker image prune -f' + if (params.DISCORD_WEBHOOK_CRED) { + def result = currentBuild.result.toLowerCase() ?: 'unknown' + discordNotify( + header: "SpiffWorkflow Docker image build ${result}!", + cred: params.DISCORD_WEBHOOK_CRED, + ) + } // if + } // script + } // always cleanup { cleanWs() } } // post } // pipeline