From 7774992eaebe6416bc81a04d8e65727efcd42369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Edelbluth?= Date: Sun, 28 Aug 2022 20:46:11 +0200 Subject: [PATCH] Better use of notification address Adresses: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation --- .ci/Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 9f6b6b6..5932d2e 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -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}" } }