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 {
|
||||
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',
|
||||
|
|
Reference in a new issue