You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by ma...@apache.org on 2021/02/09 09:18:09 UTC

[james-project] 12/27: JAMES-3225 email developpers of PR on build failure

This is an automated email from the ASF dual-hosted git repository.

matthieu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 9b3c4efed55e500772ae1b31b12b5ed80c5dcf83
Author: Jean Helou <jh...@codamens.fr>
AuthorDate: Thu Jan 14 08:52:48 2021 +0100

    JAMES-3225 email developpers of PR on build failure
---
 Jenkinsfile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 782f4e5..4db43dc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -143,6 +143,15 @@ Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
                             to: "server-dev@james.apache.org",
                             recipientProviders: [[$class: 'DevelopersRecipientProvider']]
                     )
+                }else{
+                    emailext(
+                            subject: "[BUILD-FAILURE]: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
+                            body: """
+BUILD-FAILURE: Job '${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]':
+Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]</a>"
+""",
+                            recipientProviders: [[$class: 'DevelopersRecipientProvider']]
+                    )
                 }
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org