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