From 6ac3c5087ba6971387cbbd2118bbf4a20fd38f04 Mon Sep 17 00:00:00 2001 From: desbonne Date: Mon, 10 Sep 2012 13:12:06 +0100 Subject: [PATCH] Adding 'pipeline' publisher to enable the build pipeline plugin Change-Id: I0ab567c07c5acd7408d7662ea75dd8513a58888e Reviewed-on: https://review.openstack.org/12792 Reviewed-by: James E. Blair Reviewed-by: Monty Taylor Approved: Monty Taylor Tested-by: Jenkins --- jenkins_jobs/modules/publishers.py | 4 ++++ setup.py | 1 + 2 files changed, 5 insertions(+) diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index 678204589..566acfff7 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -256,6 +256,10 @@ def scp(parser, xml_parent, data): else: XML.SubElement(entry_e, 'copyAfterFailure').text = 'false' +def pipeline(parser, xml_parent, data): + pippub = XML.SubElement(xml_parent, + 'au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger') + XML.SubElement(pippub, 'downstreamProjectNames').text = data class Publishers(jenkins_jobs.modules.base.Base): sequence = 70 diff --git a/setup.py b/setup.py index ddc5858a5..360021e6d 100644 --- a/setup.py +++ b/setup.py @@ -62,6 +62,7 @@ setup(name='jenkins_job_builder', 'junit=jenkins_jobs.modules.publishers:junit', 'violations=jenkins_jobs.modules.publishers:violations', 'scp=jenkins_jobs.modules.publishers:scp', + 'pipeline=jenkins_jobs.modules.publishers:pipeline', ], 'jenkins_jobs.scm': [ 'git=jenkins_jobs.modules.scm:git',