Added support for Github notifier
Change-Id: I79c7847aa8df4dd4f9f76567c461d016aa00c6c1
This commit is contained in:
parent
7959bf44db
commit
8be20dc2c3
|
@ -2942,6 +2942,20 @@ def git(parser, xml_parent, data):
|
|||
handle_entity_children(note['note'], xml_note, note_mappings)
|
||||
|
||||
|
||||
def github_notifier(parser, xml_parent, data):
|
||||
"""yaml: github-notifier
|
||||
Set build status on Github commit.
|
||||
Requires the Jenkins `Github Plugin.
|
||||
<https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin>`_
|
||||
|
||||
Example:
|
||||
|
||||
.. literalinclude:: ../../tests/publishers/fixtures/github-notifier.yaml
|
||||
"""
|
||||
XML.SubElement(xml_parent,
|
||||
'com.cloudbees.jenkins.GitHubCommitNotifier')
|
||||
|
||||
|
||||
def build_publisher(parser, xml_parent, data):
|
||||
"""yaml: build-publisher
|
||||
This plugin allows records from one Jenkins to be published
|
||||
|
|
1
setup.py
1
setup.py
|
@ -140,6 +140,7 @@ setuptools.setup(
|
|||
'fingerprint=jenkins_jobs.modules.publishers:fingerprint',
|
||||
'ftp=jenkins_jobs.modules.publishers:ftp',
|
||||
'git=jenkins_jobs.modules.publishers:git',
|
||||
'github-notifier=jenkins_jobs.modules.publishers:github_notifier',
|
||||
('groovy-postbuild=jenkins_jobs.modules.publishers:'
|
||||
'groovy_postbuild'),
|
||||
'html-publisher=jenkins_jobs.modules.publishers:html_publisher',
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" ?>
|
||||
<project>
|
||||
<publishers>
|
||||
<com.cloudbees.jenkins.GitHubCommitNotifier/>
|
||||
</publishers>
|
||||
</project>
|
|
@ -0,0 +1,2 @@
|
|||
publishers:
|
||||
- github-notifier
|
Loading…
Reference in New Issue