open class ParametrizedWithType : Parametrized
Allows to add parameters to project, build configuration, or template
ParametrizedWithType()
Allows to add parameters to project, build configuration, or template |
val params: List<Parameter> |
fun add(p: Parameter): Unit
Adds the specified parameter |
|
fun checkbox(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, checked: String? = null, unchecked: String? = null): Unit
Adds a checkbox parameter |
|
fun param(name: String, value: String, type: String? = null, vararg arguments: <ERROR CLASS><String, String>): Unit |
|
fun password(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false): Unit
Adds a password parameter, TeamCity masks its value in UI |
|
fun select(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, allowMultiple: Boolean = false, valueSeparator: String = ",", options: List<Any> = listOf()): Unit
Adds a parameter with predefined set of possible values |
|
fun text(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, allowEmpty: Boolean): Unit
Adds a text parameter fun text(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, regex: String = "", validationMessage: String = ""): Unit
Adds a text parameter validated by the specified regex |
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): SingleDelegateProvider<Boolean> |
|
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): CompoundDelegateProvider<T> |
|
fun <T : Parametrized> copyParamsTo(target: T): T
Copies parameters of this object to the specified target |
|
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): SingleDelegateProvider<E> |
|
fun findRawParam(paramName: String): Parameter? |
|
fun hasParam(paramName: String): Boolean |
|
fun intParameter(customName: String? = null): SingleDelegateProvider<Int> |
|
fun param(name: String, value: String): Unit
Adds parameter with specified name and value |
|
fun removeRawParam(paramName: String): Unit |
|
fun stringParameter(customName: String? = null): SingleDelegateProvider<String> |