How to create a key-value Choice Parameter?

Article ID:115001625407
1 minute readKnowledge base

Issue

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

Resolution

First of all, install the Extensible Choice Parameter Plugin

Access to the job configuration, add a new Extended Choice Parameter and configure it like 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
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.