E-Mail Notification
This commit is contained in:
parent
755d8f9276
commit
82584ab395
|
@ -39,13 +39,13 @@ pipeline {
|
|||
|
||||
post {
|
||||
success {
|
||||
cleanWs()
|
||||
deleteDir()
|
||||
}
|
||||
always {
|
||||
withCredentials([string(credentialsId: 'jed-notification-email', variable: 'EMAIL')]) {
|
||||
mail to: "${EMAIL}",
|
||||
subject: "[pytest-csv-params] ${currentBuild.currentResult}: ${currentBuild.fullDisplayName}",
|
||||
body: "Jenkins URL: ${env.BUILD_URL}"
|
||||
subject: "[${currentBuild.fullDisplayName}] Build #${currentBuild.number} :${currentBuild.currentResult}",
|
||||
body: "Duration: ${currentBuild.durationString} / Jenkins URL: ${env.BUILD_URL}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue