From db315d5f07f5f3d7311dbbba287240ee7e67a0b8 Mon Sep 17 00:00:00 2001 From: Muneeb Nezameddin <39063206+MNezameddin@users.noreply.github.com> Date: Mon, 16 Mar 2020 02:54:12 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5527176fd..901539b25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,8 +18,20 @@ pipeline { } stage('Deploy') { steps { - bat './mvnw release' + bat './mvnw deploy:deploy-file' } } } + post { + success { + mail to: 'mnezam.31@gmail.com', + subject: "Successful Pipeline: ${currentBuild.fullDisplayName}", + body: "Your tests worked accordingly!" + } + failure { + mail to: 'mnezam.31@gmail.com', + subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", + body: "Something is wrong with ${env.BUILD_URL}" + } +} }