Trigger Build Parameters
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
Functions
Link copied to clipboard
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): DelegateProvider<Boolean?>
Link copied to clipboard
Link copied to clipboard
Copies parameters of this object to the specified target
Link copied to clipboard
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): DelegateProvider<E>
Link copied to clipboard
Link copied to clipboard
fun ParametrizedWithType.hashiCorpVaultParameter(init: HashiCorpVaultParameter.() -> Unit): HashiCorpVaultParameter
Example. Adds a new vault parameter with the name test
that will fetch a value from the KV 1.0 vault named secret
from the path path/to
, with the key key
. The connection namespace to use it is connection-1
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())
Adds a parameter with predefined set of possible values
Link 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)
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 = "")
Adds a text parameter validated by the specified regex
Link copied to clipboard
Validates this object and reports found errors to the provided consumer