Add support for Display Upstream Changes Plugin

Supports publisher for displaying SCM changes for upstream jobs
https://wiki.jenkins-ci.org/display/JENKINS/Display+Upstream+Changes+Plugin

Change-Id: I7720220ce05e2882e407ea75ca0c689cbd8c9a0b
This commit is contained in:
Jan Hruban 2015-03-23 07:35:58 +01:00
parent 6c3cf55400
commit 06ecd90374
4 changed files with 26 additions and 0 deletions

View File

@ -4197,6 +4197,23 @@ def scoverage(parser, xml_parent, data):
data.get('report-file', ''))
def display_upstream_changes(parser, xml_parent, data):
"""yaml: display-upstream-changes
Display SCM changes of upstream jobs. Requires the Jenkins
:jenkins-wiki:`Display Upstream Changes Plugin
<Display+Upstream+Changes+Plugin>`.
Example:
.. literalinclude:: \
/../../tests/publishers/fixtures/display-upstream-changes.yaml
"""
XML.SubElement(
xml_parent,
'jenkins.plugins.displayupstreamchanges.'
'DisplayUpstreamChangesRecorder')
class Publishers(jenkins_jobs.modules.base.Base):
sequence = 70

View File

@ -139,6 +139,7 @@ jenkins_jobs.publishers =
coverage=jenkins_jobs.modules.publishers:coverage
cppcheck=jenkins_jobs.modules.publishers:cppcheck
description-setter=jenkins_jobs.modules.publishers:description_setter
display-upstream-changes=jenkins_jobs.modules.publishers:display_upstream_changes
downstream-ext=jenkins_jobs.modules.publishers:downstream_ext
doxygen=jenkins_jobs.modules.publishers:doxygen
dry=jenkins_jobs.modules.publishers:dry

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<jenkins.plugins.displayupstreamchanges.DisplayUpstreamChangesRecorder/>
</publishers>
</project>

View File

@ -0,0 +1,2 @@
publishers:
- display-upstream-changes