diff --git a/Jenkinsfile b/Jenkinsfile
index 346700d..af01313 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -82,5 +82,19 @@ pipeline
}
}
}
+ post {
+ always {
+ script {
+ env.color = "${currentBuild.currentResult == 'SUCCESS' ? 'green' : 'red'}"
+ }
+
+ echo 'Sending e-mail.'
+ sh "printenv | sort"
+ emailext body: "${currentBuild.currentResult} - ${env.JOB_NAME} (#${env.BUILD_NUMBER})