I am following the answers in Active Choices Reactive Reference Parameter in jenkins pipeline. I have 3 parameters, where one depends on the answer of the others.
...
properties([
parameters([
[$class: 'ChoiceParameter',
choiceType: 'PT_SINGLE_SELECT',
description: 'Select the environment Name from the Dropdown List',
filterLength: 1,
filterable: true,
name: 'environment',
script: [
$class: 'GroovyScript',
fallbackScript: [
classpath: [],
sandbox: false,
script:
'return "Could not get Env"'
],
script: [
classpath: [],
sandbox: false,
script:
"""
return ["TST", "PRD"]
"""
]
]
],
...
However not even the first parameter shows any values, where I would expect environment
contains TST
and PRD
.