ci: fix artifacts on failed build [ci skip]
This commit is contained in:
parent
cf49e9a60d
commit
df3fce24c1
1 changed files with 6 additions and 3 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -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',
|
||||||
|
|
Reference in a new issue