而不是我在下面做的使用 主动选择反应式参考参数 ,它工作正常!
node('slave') { def choice1 def choice2 stage ('Select'){ choice1 = input( id: 'userInput', message: 'Select your choice', parameters: [ [$class: 'ChoiceParameterDefinition', choices: 'aanbb', description: '', name: ''] ]) if(choice1.equals("aa")){ choice2 = input( id: 'userInput', message: 'Select your choice', parameters: [ [$class: 'ChoiceParameterDefinition', choices: 'yynww', description: '', name: ''] ]) }else{ choice2 = input( id: 'userInput', message: 'Select your choice', parameters: [ [$class: 'ChoiceParameterDefinition', choices: 'ggnkk', description: '', name: ''] ]) } }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)