Parameter

data class Parameter(val name: String, val value: String, val spec: ParameterSpec? = null)

Build parameter

Example. Environment variable

params {
param("env.JAVA_HOME", "/usr/java")
}

Example. Password

Note: instead of a plain text password a token should be generated and used in DSL code. See also typed parameters

params {
password("password", "<some password>")
}

Example. Prompt parameter on attempt to start a build

See also typed parameters

params {
checkbox("confirm", "", label = "Are you sure you want to start this build?",
display = ParameterDisplay.PROMPT, checked = "yes", unchecked = "no")
}


Constructors

Link copied to clipboard
constructor(name: String, value: String, spec: ParameterSpec? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val spec: ParameterSpec? = null
Link copied to clipboard