diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index c16d1c919..8bbaca40b 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -1797,6 +1797,21 @@ def cifs(parser, xml_parent, data): plugin_reference_tag) +def cigame(parser, xml_parent, data): + """yaml: cigame + This plugin introduces a game where users get points + for improving the builds. + Requires the Jenkins `The Continuous Integration Game plugin. + `_ + + Example: + + .. literalinclude:: /../../tests/publishers/fixtures/cigame.yaml + """ + XML.SubElement(xml_parent, 'hudson.plugins.cigame.GamePublisher') + + def sonar(parser, xml_parent, data): """yaml: sonar Sonar plugin support. diff --git a/setup.py b/setup.py index 52a1377f1..d4f07bab8 100644 --- a/setup.py +++ b/setup.py @@ -135,6 +135,7 @@ setuptools.setup( 'checkstyle=jenkins_jobs.modules.publishers:checkstyle', 'campfire=jenkins_jobs.modules.publishers:campfire', 'cifs=jenkins_jobs.modules.publishers:cifs', + 'cigame=jenkins_jobs.modules.publishers:cigame', 'claim-build=jenkins_jobs.modules.publishers:claim_build', 'clone-workspace=jenkins_jobs.modules.publishers:clone_workspace', 'cloverphp=jenkins_jobs.modules.publishers:cloverphp', diff --git a/tests/publishers/fixtures/cigame.xml b/tests/publishers/fixtures/cigame.xml new file mode 100644 index 000000000..ff884052f --- /dev/null +++ b/tests/publishers/fixtures/cigame.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/tests/publishers/fixtures/cigame.yaml b/tests/publishers/fixtures/cigame.yaml new file mode 100644 index 000000000..e64b51b69 --- /dev/null +++ b/tests/publishers/fixtures/cigame.yaml @@ -0,0 +1,2 @@ +publishers: + - cigame