Dynamic Parameter in Jenkinsfile?
问题 How can I use the Jenkins Dynamic Plugin in a Jenkinsfile ? What I am looking for is a Jenkinsfile snippet that: Enables the Build with Parameters option in the Jenkins job When selected, a script that populates a list that can be used Dynamic Choice Parameters is populated and the user will see a drop down list. When trying: Pipeline syntax in the Jenkins editor Selecting properties: Set job properties as Sample step Selecting This project is parameterized Using Dynamic Choice Parameter