I want achieve Picture 3. If no need update, give default value. If need update, then give user input area.
I\'d like use active reactive Reference in Jenkins pipeline
Thanks Markzhu;
I ran into the same problem and this solution really helped!
You really don't need to use a Jenkinsfile though. You can just add the code to the reactive parameter like this.
if(NeedUpgradePC.equals('yes')) {
inputBox=""
} else {
inputBox=""
}
But the better option is to stop using text and use a checkbox instead. Here is how you check the value of a checkbox.
if (NeedUpgradePC.equals('on')){
inputBox=""
} else {
inputBox=""
}