From 9fb56fc246e1f7e7eb9855ffa5f7da63e87ec055 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Thu, 10 Oct 2019 15:19:37 -0400 Subject: [PATCH] Add build time to success email. --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 91d1b69..a1a40c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -207,13 +207,13 @@ pipeline { success { echo 'The pipeline worked!' mail to: 'jenkinsbuilds@d4science.org', - subject: "gCube pipeline worked: ${currentBuild.fullDisplayName} worked1", - body: "See ${env.BUILD_URL}" + subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} worked", + body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}" } failure { echo 'The pipeline has failed' mail to: 'jenkinsbuilds@d4science.org', - subject: "${currentBuild.fullDisplayName} has failed", + subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} failed", body: "Something is wrong with ${env.BUILD_URL}" }