From 72ad1682d27d8b240887d369bf9276967e9d38e4 Mon Sep 17 00:00:00 2001
From: Marica Antonacci <marica.antonacci@ba.infn.it>
Date: Thu, 13 Oct 2022 09:33:59 +0200
Subject: [PATCH] Improve pipeline

---
 utils/Jenkinsfile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/utils/Jenkinsfile b/utils/Jenkinsfile
index 88f4f26..8c9ff90 100644
--- a/utils/Jenkinsfile
+++ b/utils/Jenkinsfile
@@ -1,9 +1,5 @@
 pipeline {
     agent { label 'docker-paas-agent' } 
-
-    options {
-        timestamps()
-    }
     
     environment {
         ORCHENT_AGENT_ACCOUNT='infn-cloud'
@@ -47,5 +43,8 @@ pipeline {
             ansible-playbook site.yaml --extra-vars "paas_ci_test_step='clean'" 
             '''
         }
+        failure {
+            emailext body: '$DEFAULT_CONTENT', subject: '$DEFAULT_SUBJECT', to: '$DEFAULT_RECIPIENTS'
+        }
     }   
 }
\ No newline at end of file
-- 
GitLab