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:
Jakub Sokołowski 2024-04-02 18:15:19 +02:00 committed by GitHub
parent 467d33e4a2
commit 7f18fb7cee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
Jenkinsfile vendored
View File

@ -82,8 +82,11 @@ pipeline {
image.push(env.DOCKER_TAG) image.push(env.DOCKER_TAG)
} }
} } } }
}
} // stages
post { post {
always { script { always { script {
sh 'docker image prune -f' }
if (params.DISCORD_WEBHOOK_CRED) { if (params.DISCORD_WEBHOOK_CRED) {
def result = currentBuild.result.toLowerCase() ?: 'unknown' def result = currentBuild.result.toLowerCase() ?: 'unknown'
discordNotify( discordNotify(
@ -92,11 +95,6 @@ pipeline {
) )
} }
} } } }
}
}
} // stages
post {
always { sh 'docker image prune -f' }
cleanup { cleanWs() } cleanup { cleanWs() }
} // post } // post
} // pipeline } // pipeline