This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move extended-choice support to parameters module
This patch fixes support for the extended choice plugin in the parameter module so that it can nicely coexist with the other parameters. This leaves the existing extended choice plugin code in the properties module, but removes the documentation from that location and adds a deprecation warning. This patch also provides parity with the existing functionality under the properties module. Change-Id: Ibace4284fc1bd391948917979a4223bd3007dff4 Closes-Bug: #1361335
- Loading branch information
Showing
5 changed files
with
121 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project> | ||
<properties> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition> | ||
<name>OPTIONS</name> | ||
<description>Available options</description> | ||
<value>foo|bar|select</value> | ||
<visibleItemCount>2</visibleItemCount> | ||
<multiSelectDelimiter>|</multiSelectDelimiter> | ||
<quoteValue>true</quoteValue> | ||
<defaultValue>foo</defaultValue> | ||
<type>PT_MULTI_SELECT</type> | ||
<propertyFile>/home/foo/property.prop</propertyFile> | ||
<propertyKey>key</propertyKey> | ||
<defaultPropertyFile>/home/property.prop</defaultPropertyFile> | ||
<defaultPropertyKey>fookey</defaultPropertyKey> | ||
</com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
parameters: | ||
- extended-choice: | ||
name: OPTIONS | ||
description: "Available options" | ||
property-file: /home/foo/property.prop | ||
property-key: key | ||
quote-value: true | ||
type: multi-select | ||
value: "foo|bar|select" | ||
visible-items: 2 | ||
multi-select-delimiter: '|' | ||
default-value: foo | ||
default-property-file: /home/property.prop | ||
default-property-key: fookey |