Implement notification on buildslave disconnection

Add e-mail address (admin) to each buildslave, and implement
notification when a buildslave is disconnected.  Also, remove old
fedora-21-ppc64le-1 buildslave.
This commit is contained in:
Sergio Durigan Junior 2015-06-17 00:58:53 -04:00
parent cc102f34d6
commit 480fb0ab6a
2 changed files with 24 additions and 11 deletions

View file

@ -1,20 +1,31 @@
{
"slaves" : [ { "name" : "fedora-x86-64-1", "arch" : "x86_64", "jobs" : "4" },
{ "name" : "fedora-x86-64-2", "arch" : "x86_64", "jobs" : "4" },
"slaves" : [ { "name" : "fedora-x86-64-1", "arch" : "x86_64", "jobs" : "4"
"admin" : "sergiodj@redhat.com" },
{ "name" : "fedora-x86-64-2", "arch" : "x86_64", "jobs" : "4"
"admin" : "sergiodj@redhat.com" },
{ "name" : "wildebeest-debian-wheezy-x86_64", "arch" : "x86_64", "jobs" : "2" },
{ "name" : "wildebeest-debian-wheezy-i686", "arch" : "i686", "jobs" : "2" },
{ "name" : "wildebeest-debian-wheezy-x86_64", "arch" : "x86_64",
"jobs" : "2", "admin" : "mark@klomp.org" },
{ "name" : "wildebeest-debian-wheezy-i686", "arch" : "i686",
"jobs" : "2", "admin" : "mark@klomp.org" },
{ "name" : "marist-fedora-s390x", "arch" : "s390x", "jobs" : "2" },
{ "name" : "marist-fedora-s390x", "arch" : "s390x", "jobs" : "2",
"admin" : "mark@klomp.org" },
{ "name" : "fedora-ppc64be-1", "arch" : "ppc64be", "jobs" : "16" },
{ "name" : "fedora-ppc64be-1", "arch" : "ppc64be", "jobs" : "16",
"admin" : "emachado@linux.vnet.ibm.com" },
{ "name" : "fedora-ppc64le-1", "arch" : "ppc64le", "jobs" : "16" },
{ "name" : "fedora-ppc64le-1", "arch" : "ppc64le", "jobs" : "16",
"admin" : "emachado@linux.vnet.ibm.com" },
{ "name" : "koobs-freebsd8", "arch" : "x86_64", "jobs" : "1" },
{ "name" : "koobs-freebsd9", "arch" : "x86_64", "jobs" : "1" },
{ "name" : "koobs-freebsd10", "arch" : "x86_64", "jobs" : "1" },
{ "name" : "koobs-freebsd11", "arch" : "x86_64", "jobs" : "1" }
{ "name" : "koobs-freebsd8", "arch" : "x86_64", "jobs" : "1",
"admin" : "sergiodj@redhat.com" },
{ "name" : "koobs-freebsd9", "arch" : "x86_64", "jobs" : "1",
"admin" : "sergiodj@redhat.com" },
{ "name" : "koobs-freebsd10", "arch" : "x86_64", "jobs" : "1",
"admin" : "sergiodj@redhat.com" },
{ "name" : "koobs-freebsd11", "arch" : "x86_64", "jobs" : "1",
"admin" : "sergiodj@redhat.com" }
],
"builders" : [ { "name" : "Fedora-x86_64-m64", "type" : "Plain_c64t64",

View file

@ -829,6 +829,8 @@ def load_config (c):
c['slaves'] = [BuildSlave (slave['name'], passwd[slave['name']],
max_builds = 1,
notify_on_missing = slave['admin'],
missing_timeout = 300,
properties = { 'jobs' : slave['jobs'],
'randomWait' : "%d" % random.randrange (1, 30) })
for slave in config['slaves']]