Parameter
Example. Environment variable
params {
param("env.JAVA_HOME", "/usr/java")
}
Content copied to clipboard
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>")
}
Content copied to clipboard
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")
}
Content copied to clipboard