fixed jenkinsfile syntax w/ burnettk

This commit is contained in:
jasquat 2024-04-02 13:43:34 -04:00
parent 64b72f439b
commit 0c945c7eea
No known key found for this signature in database
1 changed files with 12 additions and 10 deletions

22
Jenkinsfile vendored
View File

@ -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