jenkins-job-builder/tests/parameters/fixtures/extended-choice-param-full.xml
Igor Lakhtenkov 2e988b3f26 Added support of json type for extended choice parameter and related parameters.
Added support of multilevel type for extended choice parameter
dded jenkins_jobs.modules.helpers.check_mutual_exclusive_data_args decorator that used for validating data arguments
in jenkins_jobs.modules.parameters.extended_choice_param method.

Change-Id: Id8c0f8090dd99022501558cafa5b1c27e6675425
Task: #41320
2021-01-04 12:36:24 +03:00

213 lines
8.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>OPTIONS_VALUE</name>
<description>Available options</description>
<value>foo|bar|select</value>
<visibleItemCount>2</visibleItemCount>
<multiSelectDelimiter>|</multiSelectDelimiter>
<quoteValue>true</quoteValue>
<defaultValue>foo</defaultValue>
<descriptionPropertyValue/>
<type>PT_MULTI_SELECT</type>
<propertyFile/>
<propertyKey>key</propertyKey>
<defaultPropertyFile/>
<defaultPropertyKey>fookey</defaultPropertyKey>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>OPTIONS_FILE</name>
<description>Available options</description>
<value/>
<visibleItemCount>2</visibleItemCount>
<multiSelectDelimiter>|</multiSelectDelimiter>
<quoteValue>true</quoteValue>
<defaultValue/>
<descriptionPropertyValue/>
<type>PT_MULTI_SELECT</type>
<propertyFile>/home/foo/property.prop</propertyFile>
<propertyKey>key</propertyKey>
<defaultPropertyFile>/home/property.prop</defaultPropertyFile>
<defaultPropertyKey>fookey</defaultPropertyKey>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>OPTIONS_CHECKBOX</name>
<description/>
<value>OptionA,OptionB,OptionC</value>
<visibleItemCount>2</visibleItemCount>
<multiSelectDelimiter>,</multiSelectDelimiter>
<quoteValue>false</quoteValue>
<defaultValue/>
<descriptionPropertyValue/>
<type>PT_CHECKBOX</type>
<propertyFile/>
<propertyKey/>
<defaultPropertyFile/>
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>MULTISELECTOPTIONS</name>
<description>Available options</description>
<value>foo|bar|select</value>
<visibleItemCount>2</visibleItemCount>
<multiSelectDelimiter>|</multiSelectDelimiter>
<quoteValue>true</quoteValue>
<defaultValue>foo</defaultValue>
<descriptionPropertyValue/>
<type>PT_MULTI_SELECT</type>
<propertyFile/>
<propertyKey>key</propertyKey>
<defaultPropertyFile/>
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>JSON</name>
<description/>
<value/>
<visibleItemCount>5</visibleItemCount>
<multiSelectDelimiter>,</multiSelectDelimiter>
<quoteValue>false</quoteValue>
<defaultValue/>
<descriptionPropertyValue/>
<type>PT_JSON</type>
<propertyFile/>
<propertyKey/>
<defaultPropertyFile/>
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript>import net.sf.json.JSONObject; def jsonEditorOptions = JSONObject.fromObject(/{schema: {&quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;Name&quot;, &quot;properties&quot;: {&quot;name&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;propertyOrder&quot; : 1}}}}/);</groovyScript>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>MULTILEVELMULTISELECT</name>
<description/>
<value>foo,bar,baz</value>
<visibleItemCount>5</visibleItemCount>
<multiSelectDelimiter>,</multiSelectDelimiter>
<quoteValue>false</quoteValue>
<defaultValue/>
<descriptionPropertyValue/>
<type>PT_MULTI_LEVEL_MULTI_SELECT</type>
<propertyFile/>
<propertyKey/>
<defaultPropertyFile/>
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
<name>MULTILEVELSINGLESELECT</name>
<description/>
<value>foo</value>
<visibleItemCount>5</visibleItemCount>
<multiSelectDelimiter>,</multiSelectDelimiter>
<quoteValue>false</quoteValue>
<defaultValue/>
<descriptionPropertyValue/>
<type>PT_MULTI_LEVEL_SINGLE_SELECT</type>
<propertyFile/>
<propertyKey/>
<defaultPropertyFile/>
<defaultPropertyKey/>
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript/>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>
<defaultGroovyClasspath/>
<descriptionGroovyScript/>
<descriptionGroovyScriptFile/>
<descriptionGroovyClasspath/>
<javascript/>
<javascriptFile/>
<saveJSONParameterToFile>false</saveJSONParameterToFile>
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
</project>