marcoabreu closed pull request #11432: Update email notifications
URL: https://github.com/apache/incubator-mxnet/pull/11432
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/Jenkinsfile b/Jenkinsfile
index 10fdf1d6cfa..bf776ee1d60 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 eba3a492f8d..60cccb38e12 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 618511b7bce..88f75e71a19 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 6805bc43e6d..4b7a0943701 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 7c727d6bb44..01026cf9f16 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 84aa2f1bc4a..a87db838602 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
+}


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to