diff options
author | Zuul <zuul@review.openstack.org> | 2019-04-10 01:13:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-04-10 01:13:17 +0000 |
commit | 9462a710f14f4b49a2a12a4850b335016f7f70cd (patch) | |
tree | c8d60912a0dedbdb0b809d73584c9019566ec093 /jenkins_jobs/modules | |
parent | e6398cf3733e9306999596b74d8810a9334dd8fc (diff) | |
parent | 062b759ee97f8aa327698515226b6fd27128d798 (diff) | |
download | python-jenkins-job-builder-9462a710f14f4b49a2a12a4850b335016f7f70cd.tar.gz python-jenkins-job-builder-9462a710f14f4b49a2a12a4850b335016f7f70cd.tar.xz python-jenkins-job-builder-9462a710f14f4b49a2a12a4850b335016f7f70cd.zip |
Merge "Add 'publishers-from' to the publishers module"
Diffstat (limited to 'jenkins_jobs/modules')
-rw-r--r-- | jenkins_jobs/modules/publishers.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index 9c3325e6..393e530f 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -7586,6 +7586,25 @@ def chuck_norris(registry, xml_parent, data): return XML.SubElement(chuck, "factGenerator") +def publishers_from(registry, xml_parent, data): + """yaml: publishers-from + Use publishers from another project. + Requires the Jenkins :jenkins-wiki:`Template Project Plugin + <Template+Project+Plugin>`. + + :arg str project-name: The name of the other project. + + Example: + + .. literalinclude:: ../../tests/publishers/fixtures/publishers-from.yaml + :language: yaml + """ + pbs = XML.SubElement(xml_parent, + 'hudson.plugins.templateproject.ProxyPublisher') + mapping = [('project-name', 'projectName', None)] + helpers.convert_mapping_to_xml(pbs, data, mapping, fail_required=True) + + def tasks(registry, xml_parent, data): """yaml: tasks |