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}" + } +} }