Add correct recipients to webrtc jobs.

This commit is contained in:
Syd Polk 2016-04-01 16:04:54 -05:00
Родитель cafb3d07ba
Коммит 7aa9e10810
3 изменённых файлов: 35 добавлений и 2 удалений

33
fix_projects.py Normal file
Просмотреть файл

@ -0,0 +1,33 @@
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import jenkins
import re
import sys
parser = argparse.ArgumentParser(description='Enable jobs in a jenkins instance')
parser.add_argument('--regexp', required=True)
parser.add_argument('--config-re', required=True, dest='config_re')
parser.add_argument('--replacement', required=True)
parser.add_argument('--jenkins-host', required=True, dest='host')
args = parser.parse_args(sys.argv[1:])
pattern = re.compile(args.config_re)
jenkins_instance = jenkins.Jenkins(args.host)
jobs = jenkins_instance.get_job_info_regex(args.regexp)
for job in jobs:
name = job['name']
config_xml = jenkins_instance.get_job_config(name)
new_config = re.sub(pattern, args.replacement, config_xml)
print 'Updating %s...' % name
jenkins_instance.reconfig_job(name, new_config)
print 'Done.'

2
jobs

@ -1 +1 @@
Subproject commit 8004c742a62b8f9c6328dae9841a17b310ebda6d
Subproject commit 952b9a733b43e66587693f1181cad6a51fa8aac3

Просмотреть файл

@ -136,7 +136,7 @@ python `pwd`/mozplatformqa-jenkins/jenkinsherder.py --steeplechase `pwd`/steeple
</builders>
<publishers>
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.39">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<recipientList>$DEFAULT_RECIPIENTS, $WEBRTC_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
<email>