Added support for Jenkins plugin Blame upstream committers
Change-Id: Iefbca697ac93176c9e132e7a0dc04f2b0a7b09f6
This commit is contained in:
parent
4ac4b88e5a
commit
96f134a1c4
@ -77,6 +77,24 @@ def archive(parser, xml_parent, data):
|
|||||||
latest.text = 'false'
|
latest.text = 'false'
|
||||||
|
|
||||||
|
|
||||||
|
def blame_upstream(parser, xml_parent, data):
|
||||||
|
"""yaml: blame-upstream
|
||||||
|
Notify upstream commiters when build fails
|
||||||
|
Requires the Jenkins `Blame upstream commiters Plugin.
|
||||||
|
<https://wiki.jenkins-ci.org/display/JENKINS/
|
||||||
|
Blame+Upstream+Committers+Plugin>`_
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. literalinclude:: /../../tests/publishers/fixtures/blame001.yaml
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
XML.SubElement(xml_parent,
|
||||||
|
'hudson.plugins.blame__upstream__commiters.'
|
||||||
|
'BlameUpstreamCommitersPublisher')
|
||||||
|
|
||||||
|
|
||||||
def emotional_jenkins(parser, xml_parent, data):
|
def emotional_jenkins(parser, xml_parent, data):
|
||||||
"""yaml: emotional-jenkins
|
"""yaml: emotional-jenkins
|
||||||
Emotional Jenkins.
|
Emotional Jenkins.
|
||||||
|
1
setup.py
1
setup.py
@ -120,6 +120,7 @@ setuptools.setup(
|
|||||||
'jenkins_jobs.publishers': [
|
'jenkins_jobs.publishers': [
|
||||||
'aggregate-tests=jenkins_jobs.modules.publishers:aggregate_tests',
|
'aggregate-tests=jenkins_jobs.modules.publishers:aggregate_tests',
|
||||||
'archive=jenkins_jobs.modules.publishers:archive',
|
'archive=jenkins_jobs.modules.publishers:archive',
|
||||||
|
'blame-upstream=jenkins_jobs.modules.publishers:blame_upstream',
|
||||||
'build-publisher=jenkins_jobs.modules.publishers:build_publisher',
|
'build-publisher=jenkins_jobs.modules.publishers:build_publisher',
|
||||||
'checkstyle=jenkins_jobs.modules.publishers:checkstyle',
|
'checkstyle=jenkins_jobs.modules.publishers:checkstyle',
|
||||||
'cifs=jenkins_jobs.modules.publishers:cifs',
|
'cifs=jenkins_jobs.modules.publishers:cifs',
|
||||||
|
7
tests/publishers/fixtures/blame001.xml
Normal file
7
tests/publishers/fixtures/blame001.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<project>
|
||||||
|
<publishers>
|
||||||
|
<hudson.plugins.blame__upstream__commiters.BlameUpstreamCommitersPublisher/>
|
||||||
|
</publishers>
|
||||||
|
</project>
|
||||||
|
|
2
tests/publishers/fixtures/blame001.yaml
Normal file
2
tests/publishers/fixtures/blame001.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
publishers:
|
||||||
|
- blame-upstream
|
Loading…
Reference in New Issue
Block a user