summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/publishers.py
diff options
context:
space:
mode:
authorkendallpcdoctor <kendall@pc-doctor.com>2019-07-25 11:01:30 -0700
committerkendallpcdoctor <kendall@pc-doctor.com>2019-07-25 13:12:49 -0700
commit5117d87e8c7b9272f1ac5ef59f2f05afc32c9715 (patch)
treeb0200f1ef65f9eb9fff5d23c02d9b429a3b61a2d /jenkins_jobs/modules/publishers.py
parent2bff652b03bfcf0ab272e5cd0b5092472c201f7e (diff)
downloadpython-jenkins-job-builder-5117d87e8c7b9272f1ac5ef59f2f05afc32c9715.tar.gz
python-jenkins-job-builder-5117d87e8c7b9272f1ac5ef59f2f05afc32c9715.tar.xz
python-jenkins-job-builder-5117d87e8c7b9272f1ac5ef59f2f05afc32c9715.zip
Add support for two new plugins, and a new version of one
Added new support for the following plugins: Perforce plugin: https://wiki.jenkins.io/display/JENKINS/Perforce+Plugin InfluxDB plugin: https://wiki.jenkins.io/display/JENKINS/InfluxDB+Plugin Added support for v3.0 of the following plugin https://wiki.jenkins.io/display/JENKINS/Priority+Sorter+Plugin Change-Id: If109863a91710c08b34dee622496e551a7b3b520
Diffstat (limited to 'jenkins_jobs/modules/publishers.py')
-rw-r--r--jenkins_jobs/modules/publishers.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index 393e530f..8c348476 100644
--- a/jenkins_jobs/modules/publishers.py
+++ b/jenkins_jobs/modules/publishers.py
@@ -40,6 +40,28 @@ from jenkins_jobs.modules import hudson_model
import jenkins_jobs.modules.helpers as helpers
+def influx_db(registry, xml_parent, data):
+ """yaml: influx-db
+ Requires the Jenkins :jenkins-wiki: `Influx DB
+ <Influx+DB+Plugin>`.
+ """
+
+ influx_db = XML.SubElement(xml_parent,
+ 'jenkinsci.plugins.influxdb.InfluxDbPublisher',
+ {'plugin': 'influx-db'})
+
+ mapping = [
+ ('selected-target', 'selectedTarget', ''),
+ ('custom-project-name', 'customProjectName', ''),
+ ('custom-prefix', 'customPrefix', ''),
+ ('jenkins-env-parameter-field', 'jenkinsEnvParameterField', ''),
+ ('jenkins-env-parameter-tag', 'jenkinsEnvParameterTag', '')
+ ]
+
+ helpers.convert_mapping_to_xml(
+ influx_db, data, mapping, fail_required=True)
+
+
def allure(registry, xml_parent, data):
"""yaml: allure