Added support for Github notifier

Change-Id: I79c7847aa8df4dd4f9f76567c461d016aa00c6c1
This commit is contained in:
Kei YAMAZAKI 2013-12-21 23:35:25 +09:00
parent 7959bf44db
commit 8be20dc2c3
4 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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',

View File

@ -0,0 +1,6 @@
<?xml version="1.0" ?>
<project>
<publishers>
<com.cloudbees.jenkins.GitHubCommitNotifier/>
</publishers>
</project>

View File

@ -0,0 +1,2 @@
publishers:
- github-notifier