Better use of notification address

Adresses: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation
This commit is contained in:
Jürgen Edelbluth 2022-08-28 20:46:11 +02:00
parent bef3987479
commit 7774992eae
Signed by: git.codebau.dev
GPG Key ID: F798C6B4352E8035

4
.ci/Jenkinsfile vendored
View File

@ -43,8 +43,8 @@ pipeline {
}
always {
withCredentials([string(credentialsId: 'jed-notification-email', variable: 'EMAIL')]) {
mail to: "${EMAIL}",
subject: "[${currentBuild.fullDisplayName}] Build #${currentBuild.number}: ${currentBuild.currentResult}",
mail to: '$EMAIL',
subject: "[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}",
body: "Duration: ${currentBuild.durationString} / Jenkins URL: ${env.BUILD_URL}"
}
}