Merge "Add support for the "Disk Usage" plugin"
This commit is contained in:
commit
a4141eed84
@ -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.
|
||||
|
6
tests/properties/fixtures/disk-usage.xml
Normal file
6
tests/properties/fixtures/disk-usage.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<properties>
|
||||
<hudson.plugins.disk__usage.DiskUsageProperty/>
|
||||
</properties>
|
||||
</project>
|
2
tests/properties/fixtures/disk-usage.yaml
Normal file
2
tests/properties/fixtures/disk-usage.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
properties:
|
||||
- disk-usage
|
Loading…
x
Reference in New Issue
Block a user