fixed jenkinsfile syntax w/ burnettk
This commit is contained in:
parent
64b72f439b
commit
0c945c7eea
|
@ -85,16 +85,18 @@ pipeline {
|
|||
}
|
||||
} // stages
|
||||
post {
|
||||
always { script {
|
||||
sh 'docker image prune -f' }
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue