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