Skip to content

Commit

Permalink
Do not send email on Jenkinsfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Apr 6, 2018
1 parent bedf34c commit fbd8352
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Expand Up @@ -64,10 +64,12 @@ pipeline {
}
post {
success {
mail to:"me@example.com", subject:"SUCCESS: ${currentBuild.fullDisplayName}", body: "Yay, we passed."
sh "echo 'Send mail on success'"
// mail to:"me@example.com", subject:"SUCCESS: ${currentBuild.fullDisplayName}", body: "Yay, we passed."
}
failure {
mail to:"me@example.com", subject:"FAILURE: ${currentBuild.fullDisplayName}", body: "Boo, we failed."
sh "echo 'Send mail on failure'"
// mail to:"me@example.com", subject:"FAILURE: ${currentBuild.fullDisplayName}", body: "Boo, we failed."
}
}
}

0 comments on commit fbd8352

Please sign in to comment.