Jenkins Declarative Pipeline with extended choice parameter

本小妞迷上赌 提交于 2019-12-03 15:29:12

You should go to your http://jenkins-url.com/pipeline-syntax on the Sample step dropdown select properties There is a checkbox for This project is parameterized then you can select Add parameter Extended Choice Parameter and you can generate the groovy for that for your pipeline.

This is what i used and Tested sucessfully for Single parameter you might need to convert it for Json

com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition extch =new com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition( "NAME", "PT_SINGLE_SELECT", "VALUE, a, b", null, null, null, null, null,null, null,null,null, null, null, null,null, null, null,null, null, null, null, null, null, null,null,false,false,2,"DESC", "," )
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!