diff options
author | Kei YAMAZAKI <daydream.yamazaki@gmail.com> | 2014-03-10 15:11:59 +0900 |
---|---|---|
committer | Kei YAMAZAKI <daydream.yamazaki@gmail.com> | 2014-03-13 21:37:22 +0900 |
commit | 0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac (patch) | |
tree | b501bb571b99805ab67bfcbf65f31a7d5d3ca3c7 | |
parent | bed596e8c62ea8cbf0ee81bcea5d96684cf618ad (diff) | |
download | python-jenkins-job-builder-0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac.tar.gz python-jenkins-job-builder-0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac.tar.xz python-jenkins-job-builder-0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac.zip |
Added support for CI Game plugin
Change-Id: I27497e8cd7d2c5c85de33a81f0bc6871bd1f1c00
-rw-r--r-- | jenkins_jobs/modules/publishers.py | 15 | ||||
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | tests/publishers/fixtures/cigame.xml | 6 | ||||
-rw-r--r-- | tests/publishers/fixtures/cigame.yaml | 2 |
4 files changed, 24 insertions, 0 deletions
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. + <https://wiki.jenkins-ci.org/display/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. @@ -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 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <publishers> + <hudson.plugins.cigame.GamePublisher/> + </publishers> +</project> 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 |