Archived
0
0
Fork 0

ci: fix artifacts on failed build [ci skip]

This commit is contained in:
Daryl Ronningen 2021-07-16 20:42:26 -07:00
parent cf49e9a60d
commit df3fce24c1
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

9
Jenkinsfile vendored
View file

@ -62,13 +62,13 @@ pipeline {
}
post {
always {
sh 'tar -cf - dist/ | xz -9 -c - > neonjs-library.tar.xz'
archiveArtifacts artifacts: 'neonjs-library.tar.xz', fingerprint: true
deleteDir()
cleanWs()
}
success {
sh 'tar -cf - dist/ | xz -9 -c - > neonjs-library.tar.xz'
archiveArtifacts artifacts: 'neonjs-library.tar.xz', fingerprint: true
discordSend description: 'CI build was a Success',
link: env.BUILD_URL,
result: 'SUCCESS',
@ -76,6 +76,9 @@ pipeline {
webhookURL: env.DISCORD_WEBHOOK
}
unstable {
sh 'tar -cf - dist/ | xz -9 -c - > neonjs-library.tar.xz'
archiveArtifacts artifacts: 'neonjs-library.tar.xz', fingerprint: true
discordSend description: 'CI build was Unstable.',
link: env.BUILD_URL,
result: 'UNSTABLE',