How to pass choice parameter to call a job inside jenkins pipeline
问题 How can I pass choice parameters for the downstream job when called inside a stage in the jenkins pipeline? I tried the below solutions but none worked: stage('build job') { steps{ script{ build job: 'test', parameters: [ choice(choices: "option1\noption2\noption3\n", description: '', name: 'choiceParam') ] } } } fails with java.lang.UnsupportedOperationException: no known implementation of class hudson.model.ParameterValue is using symbol ‘choice’ Tried these as well: parameters: [ [$class: