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

olamy pushed a commit to branch reduce-notification-noise
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 0d45aac050f022836011e4c5a50e73c3dfe2e514
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sat Mar 5 19:54:20 2022 +1000

    no need to notify build failure for working branch this generate a lot of 
noise
---
 Jenkinsfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 84e81ad..c3f1381 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -111,7 +111,9 @@ timeout(time: 12, unit: 'HOURS') {
         currentBuild.result = 'FAILURE'
         throw e
     } finally {
-        jenkinsNotify()
+        if (env.BRANCH_NAME == 'master') {
+            jenkinsNotify()            
+        }    
     }
 }
 

Reply via email to