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