fixed jenkinsfile syntax w/ burnettk
This commit is contained in:
parent
64b72f439b
commit
0c945c7eea
|
@ -85,16 +85,18 @@ pipeline {
|
||||||
}
|
}
|
||||||
} // stages
|
} // stages
|
||||||
post {
|
post {
|
||||||
always { script {
|
always {
|
||||||
sh 'docker image prune -f' }
|
script {
|
||||||
if (params.DISCORD_WEBHOOK_CRED) {
|
sh 'docker image prune -f'
|
||||||
def result = currentBuild.result.toLowerCase() ?: 'unknown'
|
if (params.DISCORD_WEBHOOK_CRED) {
|
||||||
discordNotify(
|
def result = currentBuild.result.toLowerCase() ?: 'unknown'
|
||||||
header: "SpiffWorkflow Docker image build ${result}!",
|
discordNotify(
|
||||||
cred: params.DISCORD_WEBHOOK_CRED,
|
header: "SpiffWorkflow Docker image build ${result}!",
|
||||||
)
|
cred: params.DISCORD_WEBHOOK_CRED,
|
||||||
}
|
)
|
||||||
} }
|
} // if
|
||||||
|
} // script
|
||||||
|
} // always
|
||||||
cleanup { cleanWs() }
|
cleanup { cleanWs() }
|
||||||
} // post
|
} // post
|
||||||
} // pipeline
|
} // pipeline
|
||||||
|
|
Loading…
Reference in New Issue