From 7cc7aeec56ba992a0360ca018852ec447b3a965b Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 9 Sep 2022 12:00:43 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 57f22d9..9f4cbda 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,13 +38,13 @@ pipeline{ // top-level of the Pipeline, in the same workspace, // rather than on a new node entirely: reuseNode true - registryUrl 'http://workstation:5000/' } } steps { sh ''' printenv uname -a + exit 1 ''' } } @@ -68,4 +68,13 @@ pipeline{ } } } + post { + //always {} + //success {} + failure { + mail bcc: '', body: "Failure

Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
Build URL: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: ${env.JOB_NAME}", to: "mrsang@iohub.dev"; + } + //unstable {} + //changed {} + } }