From 0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac Mon Sep 17 00:00:00 2001 From: Kei YAMAZAKI Date: Mon, 10 Mar 2014 15:11:59 +0900 Subject: Added support for CI Game plugin Change-Id: I27497e8cd7d2c5c85de33a81f0bc6871bd1f1c00 --- jenkins_jobs/modules/publishers.py | 15 +++++++++++++++ setup.py | 1 + tests/publishers/fixtures/cigame.xml | 6 ++++++ tests/publishers/fixtures/cigame.yaml | 2 ++ 4 files changed, 24 insertions(+) create mode 100644 tests/publishers/fixtures/cigame.xml create mode 100644 tests/publishers/fixtures/cigame.yaml diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index c16d1c91..8bbaca40 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 52a1377f..d4f07bab 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 00000000..ff884052 --- /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 00000000..e64b51b6 --- /dev/null +++ b/tests/publishers/fixtures/cigame.yaml @@ -0,0 +1,2 @@ +publishers: + - cigame -- cgit