TriggerBuildParameters
Set of build parameters that are added to builds triggered by a trigger.
Example. Append two additional parameters to triggered build.
buildType {
// ...
triggers {
retryBuild {
// ...
buildParams {
param("param1", "value1")
param("param2", "%build.number%")
}
}
}
}
Content copied to clipboard
Since
2021.1
Constructors
Functions
Link copied to clipboard
fun booleanParameter( customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Copies parameters of this object to the specified target
Link copied to clipboard
fun doubleParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun intParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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())
Content copied to clipboard
Adds a parameter with predefined set of possible values
Link copied to clipboard
open fun stringParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
fun text( name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, allowEmpty: Boolean)
Content copied to clipboard
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 = "")
Content copied to clipboard
Adds a text parameter validated by the specified regex
Link copied to clipboard
Validates this object and reports found errors to the provided consumer