params

Configures build parameters

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")
}


Parameters

init

function to initialize build parameters