Adding ability to aggregate downstream test results

Change-Id: If688379d17cf1cbfaf4018f53e0e01625ddaeb11
Reviewed-on: https://review.openstack.org/15522
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
william.soula 2012-11-05 06:46:09 -06:00 committed by Jenkins
parent 88d5d405fd
commit 46c78640e0
2 changed files with 19 additions and 0 deletions

View File

@ -759,6 +759,24 @@ def fingerprint(parser, xml_parent, data):
'record-artifacts', False)).lower()
def aggregate_tests(parser, xml_parent, data):
"""yaml: aggregate-tests
Aggregate downstream test results
:arg bool include-failed-builds: whether to include failed builds
Example::
publishers:
- aggregate-tests:
include-failed-builds: true
"""
agg = XML.SubElement(xml_parent,
'hudson.tasks.test.AggregatedTestResultPublisher')
XML.SubElement(agg, 'includeFailedBuilds').text = str(data.get(
'include-failed-builds', False)).lower()
class Publishers(jenkins_jobs.modules.base.Base):
sequence = 70

View File

@ -79,6 +79,7 @@ setup(name='jenkins_job_builder',
'claim-build=jenkins_jobs.modules.publishers:claimbuild',
'email-ext=jenkins_jobs.modules.publishers:email_ext',
'fingerprint=jenkins_jobs.modules.publishers:fingerprint',
'aggregate-tests=jenkins_jobs.modules.publishers:aggregate_tests',
],
'jenkins_jobs.scm': [
'git=jenkins_jobs.modules.scm:git',