[libvirt] [jenkins-ci PATCH] jenkins: only send one email on build failure

Daniel P. Berrangé berrange at redhat.com
Thu Mar 14 17:25:13 UTC 2019


The current config causes jenkins to send a build on every single
failure. This is way too noisy so change it to only send emails on
the transition from good to bad.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 jenkins/jobs/autotools.yaml        | 8 ++++----
 jenkins/jobs/generic.yaml          | 8 ++++----
 jenkins/jobs/go.yaml               | 4 ++--
 jenkins/jobs/perl-modulebuild.yaml | 6 +++---
 jenkins/jobs/python-distutils.yaml | 6 +++---
 5 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/jenkins/jobs/autotools.yaml b/jenkins/jobs/autotools.yaml
index e365ec4..f04ec17 100644
--- a/jenkins/jobs/autotools.yaml
+++ b/jenkins/jobs/autotools.yaml
@@ -50,7 +50,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -89,7 +89,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -132,7 +132,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -174,5 +174,5 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
diff --git a/jenkins/jobs/generic.yaml b/jenkins/jobs/generic.yaml
index 1990930..ca69513 100644
--- a/jenkins/jobs/generic.yaml
+++ b/jenkins/jobs/generic.yaml
@@ -45,7 +45,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -83,7 +83,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -121,7 +121,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -159,5 +159,5 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
diff --git a/jenkins/jobs/go.yaml b/jenkins/jobs/go.yaml
index 3c14c35..1bdcb5f 100644
--- a/jenkins/jobs/go.yaml
+++ b/jenkins/jobs/go.yaml
@@ -45,7 +45,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -83,5 +83,5 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
diff --git a/jenkins/jobs/perl-modulebuild.yaml b/jenkins/jobs/perl-modulebuild.yaml
index 933020a..7173493 100644
--- a/jenkins/jobs/perl-modulebuild.yaml
+++ b/jenkins/jobs/perl-modulebuild.yaml
@@ -47,7 +47,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 
@@ -86,7 +86,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -127,5 +127,5 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
diff --git a/jenkins/jobs/python-distutils.yaml b/jenkins/jobs/python-distutils.yaml
index 6b388f2..f56794c 100644
--- a/jenkins/jobs/python-distutils.yaml
+++ b/jenkins/jobs/python-distutils.yaml
@@ -47,7 +47,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 
@@ -86,7 +86,7 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
 
 - job-template:
@@ -127,5 +127,5 @@
     publishers:
       - email:
           recipients: '{obj:spam}'
-          notify-every-unstable-build: true
+          notify-every-unstable-build: false
           send-to-individuals: false
-- 
2.20.1




More information about the libvir-list mailing list