How to create a key-value Choice Parameter?

Issue

  • I would like to create a key-value Choice Parameter drop-down parameter for the jobs

Environment

  • CloudBees Jenkins Enterprise
  • Jenkins
  • Extensible Choice Parameter Plugin

Resolution

First at all, install the Extensible Choice Parameter Plugin.

Access to the job configuration, add a new Extended Choice Parameter and configure it like the next image changing the values at your convenience

You can also use property files

The content of the property files would be

NUMBERS-keys.properties

keys=one,two,three

NUMBERS-values.properties

values=1,2,3

Have more questions?

1 Comments

  • 0
    Avatar
    Jussi Hallila

    Note that if values have duplicate values the descriptions don't differ either. This doesn't really achieve proper key-value parameter.

Please sign in to leave a comment.