Add build time to success email.
This commit is contained in:
parent
f897c5ac3c
commit
9fb56fc246
|
@ -207,13 +207,13 @@ pipeline {
|
||||||
success {
|
success {
|
||||||
echo 'The pipeline worked!'
|
echo 'The pipeline worked!'
|
||||||
mail to: 'jenkinsbuilds@d4science.org',
|
mail to: 'jenkinsbuilds@d4science.org',
|
||||||
subject: "gCube pipeline worked: ${currentBuild.fullDisplayName} worked1",
|
subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} worked",
|
||||||
body: "See ${env.BUILD_URL}"
|
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'The pipeline has failed'
|
echo 'The pipeline has failed'
|
||||||
mail to: 'jenkinsbuilds@d4science.org',
|
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}"
|
body: "Something is wrong with ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue