diff --git a/docs/Jenkinsfile b/docs/Jenkinsfile index 2431825c97ca..039b794914bb 100644 --- a/docs/Jenkinsfile +++ b/docs/Jenkinsfile @@ -44,6 +44,7 @@ core_logic: { } } } +} , failure_handler: { if (currentBuild.result == "FAILURE") { diff --git a/tests/nightly/Jenkinsfile b/tests/nightly/Jenkinsfile index b8debb21344f..29db3b1a37be 100755 --- a/tests/nightly/Jenkinsfile +++ b/tests/nightly/Jenkinsfile @@ -122,6 +122,7 @@ core_logic: { } } } +} , failure_handler: { // Only send email if nightly test failed diff --git a/tests/nightly/JenkinsfileForBinaries b/tests/nightly/JenkinsfileForBinaries index d3454dc6832b..c8f9ed6fab31 100755 --- a/tests/nightly/JenkinsfileForBinaries +++ b/tests/nightly/JenkinsfileForBinaries @@ -20,7 +20,7 @@ mx_lib = 'lib/libmxnet.so, lib/libmxnet.a, 3rdparty/dmlc-core/libdmlc.a, 3rdparty/tvm/nnvm/lib/libnnvm.a' -node('mxnetlinux-cpu) { +node('mxnetlinux-cpu') { // Loading the utilities requires a node context unfortunately checkout scm utils = load('ci/Jenkinsfile_utils.groovy') @@ -98,6 +98,7 @@ core_logic: { } } } +} , failure_handler: { if (currentBuild.result == "FAILURE") { diff --git a/tests/nightly/broken_link_checker_test/JenkinsfileForBLC b/tests/nightly/broken_link_checker_test/JenkinsfileForBLC index 6e859ed6bf92..43b22a79270e 100755 --- a/tests/nightly/broken_link_checker_test/JenkinsfileForBLC +++ b/tests/nightly/broken_link_checker_test/JenkinsfileForBLC @@ -45,6 +45,7 @@ core_logic: { } } } +} , failure_handler: { diff --git a/tests/nightly/model_backwards_compatibility_check/JenkinsfileForMBCC b/tests/nightly/model_backwards_compatibility_check/JenkinsfileForMBCC index c3fe4fd4cd89..00e4564e7459 100644 --- a/tests/nightly/model_backwards_compatibility_check/JenkinsfileForMBCC +++ b/tests/nightly/model_backwards_compatibility_check/JenkinsfileForMBCC @@ -61,6 +61,7 @@ core_logic: { } } } +} , failure_handler: { // Only send email if model backwards compat test failed