Merge "Add support for the "Disk Usage" plugin"

This commit is contained in:
Zuul 2018-10-16 14:59:55 +00:00 committed by Gerrit Code Review
commit a4141eed84
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