From 4ed910231a645946541b68b84cbf5257e300622a Mon Sep 17 00:00:00 2001 From: Firassawan <35850933+Firassawan@users.noreply.github.com> Date: Mon, 9 Mar 2020 17:35:21 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 191d87193..fd8fe3c45 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,11 +21,12 @@ pipeline { sh './mvnw package' } } - } post { + } + post { failure { mail to: 'firassawan@icloud.com', subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", body: "Something is wrong with ${env.BUILD_URL}" - } } +} }