Skip to content

Commit

Permalink
fixed jenkinsfile syntax w/ burnettk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasquat committed Apr 2, 2024
1 parent 64b72f4 commit 0c945c7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c945c7

Please sign in to comment.