mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-13 19:15:31 +00:00
ci: always notify, not just if we get to push stage (#1325)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
467d33e4a2
commit
7f18fb7cee
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -82,21 +82,19 @@ pipeline {
|
|||||||
image.push(env.DOCKER_TAG)
|
image.push(env.DOCKER_TAG)
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
post {
|
|
||||||
always { script {
|
|
||||||
if (params.DISCORD_WEBHOOK_CRED) {
|
|
||||||
def result = currentBuild.result.toLowerCase() ?: 'unknown'
|
|
||||||
discordNotify(
|
|
||||||
header: "SpiffWorkflow Docker image build ${result}!",
|
|
||||||
cred: params.DISCORD_WEBHOOK_CRED,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} // stages
|
} // stages
|
||||||
post {
|
post {
|
||||||
always { 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,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} }
|
||||||
cleanup { cleanWs() }
|
cleanup { cleanWs() }
|
||||||
} // post
|
} // post
|
||||||
} // pipeline
|
} // pipeline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user