summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-14 00:04:09 +0000
committerGerrit Code Review <review@openstack.org>2014-03-14 00:04:09 +0000
commita85cf4a2cf09c6319161e9b580f211ca06018d42 (patch)
treea1cfdaad7b9f1157a78de2f9ff37bac8c2f2b7fd
parentf02338d9a1c0b019702a0aa705f72f06c4e74d14 (diff)
parent0d2cdf3e957491346d9d9fb1f3e57921aa6f70ac (diff)
downloadpython-jenkins-job-builder-a85cf4a2cf09c6319161e9b580f211ca06018d42.tar.gz
python-jenkins-job-builder-a85cf4a2cf09c6319161e9b580f211ca06018d42.tar.xz
python-jenkins-job-builder-a85cf4a2cf09c6319161e9b580f211ca06018d42.zip
Merge "Added support for CI Game plugin"
-rw-r--r--jenkins_jobs/modules/publishers.py15
-rw-r--r--setup.py1
-rw-r--r--tests/publishers/fixtures/cigame.xml6
-rw-r--r--tests/publishers/fixtures/cigame.yaml2
4 files changed, 24 insertions, 0 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index 195cec4b..3867dec0 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.
diff --git a/setup.py b/setup.py
index 3b2b509a..6e83fa52 100644
--- a/setup.py
+++ b/setup.py
@@ -136,6 +136,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