Better use of notification address
Adresses: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation
This commit is contained in:
parent
bef3987479
commit
7774992eae
|
@ -43,8 +43,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
always {
|
always {
|
||||||
withCredentials([string(credentialsId: 'jed-notification-email', variable: 'EMAIL')]) {
|
withCredentials([string(credentialsId: 'jed-notification-email', variable: 'EMAIL')]) {
|
||||||
mail to: "${EMAIL}",
|
mail to: '$EMAIL',
|
||||||
subject: "[${currentBuild.fullDisplayName}] Build #${currentBuild.number}: ${currentBuild.currentResult}",
|
subject: "[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}",
|
||||||
body: "Duration: ${currentBuild.durationString} / Jenkins URL: ${env.BUILD_URL}"
|
body: "Duration: ${currentBuild.durationString} / Jenkins URL: ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue