Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins "Choice Parameter" - is there any way to define text and value using separator?

In Jenkins job configuration I can use list of values in "Choice Parameter" configuration - that's great.

I was wondering if there's any way to set text different to the value so value is a code and text is human readable.

Can't post images with reputation < 10, so here it is - http://i.stack.imgur.com/kx1lq.png

May be it's achievable using different plug-in, I would be happy to use it then. Thanks!

like image 549
user1249170 Avatar asked Mar 18 '23 12:03

user1249170


2 Answers

There is a feature request outstanding for this https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-22317

like image 168
Joe Stepowski Avatar answered Apr 24 '23 09:04

Joe Stepowski


Inside Choice Parameter, no. But you can parse the value inside the build step with a scripting language of your choice...

like image 32
Slav Avatar answered Apr 24 '23 10:04

Slav