Add support for the "Disk Usage" plugin

This adds support for the "Disk Usage" plugin
to the properties module.

Change-Id: Icead10ae6e4e2e637dddd542128779bf5579d293
This commit is contained in:
Norbert Grünwald 2018-10-10 14:47:52 +02:00
parent 7f51d01631
commit 1709ba73c8
3 changed files with 23 additions and 0 deletions

View File

@ -206,6 +206,21 @@ def gitlab(registry, xml_parent, data):
helpers.convert_mapping_to_xml(gitlab, data, mapping, fail_required=True)
def disk_usage(registry, xml_parent, data):
"""yaml: disk-usage
Enables the Disk Usage Plugin.
Requires the Jenkins :jenkins-wiki:`Disk Usage Plugin <Disk+Usage+Plugin>`.
Example:
.. literalinclude:: /../../tests/properties/fixtures/disk-usage.yaml
:language: yaml
"""
XML.SubElement(xml_parent,
'hudson.plugins.disk__usage.'
'DiskUsageProperty')
def least_load(registry, xml_parent, data):
"""yaml: least-load
Enables the Least Load Plugin.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<properties>
<hudson.plugins.disk__usage.DiskUsageProperty/>
</properties>
</project>

View File

@ -0,0 +1,2 @@
properties:
- disk-usage