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:
parent
6c3cf55400
commit
06ecd90374
|
@ -4197,6 +4197,23 @@ def scoverage(parser, xml_parent, data):
|
||||||
data.get('report-file', ''))
|
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):
|
class Publishers(jenkins_jobs.modules.base.Base):
|
||||||
sequence = 70
|
sequence = 70
|
||||||
|
|
||||||
|
|
|
@ -139,6 +139,7 @@ jenkins_jobs.publishers =
|
||||||
coverage=jenkins_jobs.modules.publishers:coverage
|
coverage=jenkins_jobs.modules.publishers:coverage
|
||||||
cppcheck=jenkins_jobs.modules.publishers:cppcheck
|
cppcheck=jenkins_jobs.modules.publishers:cppcheck
|
||||||
description-setter=jenkins_jobs.modules.publishers:description_setter
|
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
|
downstream-ext=jenkins_jobs.modules.publishers:downstream_ext
|
||||||
doxygen=jenkins_jobs.modules.publishers:doxygen
|
doxygen=jenkins_jobs.modules.publishers:doxygen
|
||||||
dry=jenkins_jobs.modules.publishers:dry
|
dry=jenkins_jobs.modules.publishers:dry
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<project>
|
||||||
|
<publishers>
|
||||||
|
<jenkins.plugins.displayupstreamchanges.DisplayUpstreamChangesRecorder/>
|
||||||
|
</publishers>
|
||||||
|
</project>
|
|
@ -0,0 +1,2 @@
|
||||||
|
publishers:
|
||||||
|
- display-upstream-changes
|
Loading…
Reference in New Issue