jenkins管道中的Active Choices反应参考参数

jenkins管道中的Active Choices反应参考参数,第1张

jenkins管道中的Active Choices反应参考参数

而不是我在下面做的使用 主动选择反应式参考参数 ,它工作正常!

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: ''] ])        }    }}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5039750.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存