diff --git a/Jenkinsfile b/Jenkinsfile index e108ba49c..eb6d70f77 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,10 +19,7 @@ pipeline { stage('Deploy') { steps { echo 'Deploy' - } - } - } - post { + post { success { mail to: 'mnezam.31@gmail.com', subject: "Successful Pipeline", @@ -34,4 +31,7 @@ pipeline { body: "Something is wrong" } } + } + } + } }