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',