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 parameterExtended Choice Parameter and you can generate the groovy for that for your pipeline.