diff --git a/Jenkinsfile b/Jenkinsfile index e108ba49c..85411c106 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,20 +18,20 @@ pipeline { } stage('Deploy') { steps { - echo 'Deploy' + echo 'Deployed Successfully' } } } post { success { - mail to: 'mnezam.31@gmail.com', - subject: "Successful Pipeline", - body: "Your tests worked accordingly!" - } - failure { - mail to: 'mnezam.31@gmail.com', - subject: "Failed Pipeline}", - body: "Something is wrong" + mail to: 'mnezam.31@gmail.com', + subject: "Successfull Build: ${currentBuild.fullDisplayName}", + body: "The following was successfully built ${env.BUILD_URL}" + } + failure { + mail to: 'mnezam.31@gmail.com', + subject: "Failed Build: ${currentBuild.fullDisplayName}", + body: "Something went wrong with the following ${env.BUILD_URL}" + } } } -}