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

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new f848b3e  Update email notifications (#11432)
f848b3e is described below

commit f848b3eabb031b0174a467f5e37317714df62ccb
Author: Marco de Abreu <marcoab...@users.noreply.github.com>
AuthorDate: Thu Jun 28 02:10:23 2018 +0200

    Update email notifications (#11432)
---
 Jenkinsfile                                              | 4 ++--
 ci/Jenkinsfile_docker_cache                              | 4 ++--
 docs/Jenkinsfile                                         | 4 ++--
 tests/nightly/Jenkinsfile                                | 2 +-
 tests/nightly/JenkinsfileForBinaries                     | 2 +-
 tests/nightly/broken_link_checker_test/JenkinsfileForBLC | 9 +++++++--
 6 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 10fdf1d..bf776ee 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -985,8 +985,8 @@ try {
   }
 } finally {
   node("mxnetlinux-cpu") {
-    // Only send email if master failed
-    if (currentBuild.result == "FAILURE" && env.BRANCH_NAME == "master") {
+    // Only send email if master or release branches failed
+    if (currentBuild.result == "FAILURE" && (env.BRANCH_NAME == "master" || 
env.BRANCH_NAME.startsWith("v"))) {
       emailext body: 'Build for MXNet branch ${BRANCH_NAME} has broken. Please 
view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[BUILD FAILED] 
Branch ${BRANCH_NAME} build ${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
diff --git a/ci/Jenkinsfile_docker_cache b/ci/Jenkinsfile_docker_cache
index eba3a49..60cccb3 100644
--- a/ci/Jenkinsfile_docker_cache
+++ b/ci/Jenkinsfile_docker_cache
@@ -70,8 +70,8 @@ try {
 } finally {
   node("restricted-mxnetlinux-cpu") {
     // Only send email if master failed
-    if (currentBuild.result == "FAILURE" && env.BRANCH_NAME == "master") {
-      emailext body: 'Build for MXNet branch ${BRANCH_NAME} has broken. Please 
view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[BUILD FAILED] 
Branch ${BRANCH_NAME} build ${BUILD_NUMBER}', to: '${EMAIL}'
+    if (currentBuild.result == "FAILURE") {
+      emailext body: 'Generating the Docker Cache has failed. Please view the 
build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[DOCKER CACHE FAILED] 
Run ${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
     if (err) {
diff --git a/docs/Jenkinsfile b/docs/Jenkinsfile
index 618511b..88f75e7 100644
--- a/docs/Jenkinsfile
+++ b/docs/Jenkinsfile
@@ -70,8 +70,8 @@ try {
 } finally {
   node("restricted-mxnetlinux-cpu") {
     // Only send email if master failed
-    if (currentBuild.result == "FAILURE" && env.BRANCH_NAME == "master") {
-      emailext body: 'Build for MXNet branch ${BRANCH_NAME} has broken. Please 
view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[BUILD FAILED] 
Branch ${BRANCH_NAME} build ${BUILD_NUMBER}', to: '${EMAIL}'
+    if (currentBuild.result == "FAILURE") {
+      emailext body: 'Generating the website has failed. Please view the build 
at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[WEBSITE FAILED] Build 
${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
     if (err) {
diff --git a/tests/nightly/Jenkinsfile b/tests/nightly/Jenkinsfile
index 6805bc4..4b7a094 100755
--- a/tests/nightly/Jenkinsfile
+++ b/tests/nightly/Jenkinsfile
@@ -175,7 +175,7 @@ try {
   node("mxnetlinux-cpu") {
     // Only send email if nightly test failed
     if (currentBuild.result == "FAILURE") {
-    emailext body: 'Build for MXNet branch has broken. Please view the build 
at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[NIGHTLY TEST FAILED] build 
${BUILD_NUMBER}', to: 'meghnabaijal2...@gmail.com, meghnabai...@gmail.com'
+    emailext body: 'Nightly tests for MXNet branch ${BRANCH_NAME} failed. 
Please view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[NIGHTLY 
TEST FAILED] build ${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
     if (err) {
diff --git a/tests/nightly/JenkinsfileForBinaries 
b/tests/nightly/JenkinsfileForBinaries
index 7c727d6..01026cf 100755
--- a/tests/nightly/JenkinsfileForBinaries
+++ b/tests/nightly/JenkinsfileForBinaries
@@ -111,7 +111,7 @@ try {
   node("mxnetlinux-cpu") {
     // Only send email if master failed
     if (currentBuild.result == "FAILURE") {
-    emailext body: 'Build for MXNet Nightly Test is broken. Please view the 
build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[NIGHTLY TEST FAILED] 
Build ${BUILD_NUMBER}', to: 'meghnabaijal2...@gmail.com'
+               emailext body: 'Nightly tests for MXNet branch ${BRANCH_NAME} 
failed. Please view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: 
'[NIGHTLY TEST FAILED] build ${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
     if (err) {
diff --git a/tests/nightly/broken_link_checker_test/JenkinsfileForBLC 
b/tests/nightly/broken_link_checker_test/JenkinsfileForBLC
index 84aa2f1..a87db83 100755
--- a/tests/nightly/broken_link_checker_test/JenkinsfileForBLC
+++ b/tests/nightly/broken_link_checker_test/JenkinsfileForBLC
@@ -75,11 +75,16 @@ try {
   node("mxnetlinux-cpu") {
     // Only send email if nightly test failed
     if (currentBuild.result == "FAILURE") {
-    emailext body: 'The broken link checker test has failed. Please view the 
logs at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[NIGHTLY TEST FAILED] 
build ${BUILD_NUMBER}', to: '${EMAIL}'
+       emailext body: '''https://mxnet.incubator.apache.org  broken link test 
summary:
+            |
+            |Please view the logs at ${BUILD_URL}
+            |
+            |${BUILD_LOG_EXCERPT, start="START - Broken links summary", 
end="END - Broken links summary"}''',
+        replyTo: '${EMAIL}', subject: '[BROKEN LINK CHECKER FAILED] Run 
${BUILD_NUMBER}', to: '${EMAIL}'
     }
     // Remember to rethrow so the build is marked as failing
     if (err) {
       throw err
     }
   }
-}
\ No newline at end of file
+}

Reply via email to