diff --git a/Jenkinsfile b/Jenkinsfile index 622a23e..59add30 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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',