jenkins extended choice parameter plugin multi select values from a property file

13,120

For multi-level select lists, you have to enter the column headers (Country,City) in the Value field.

enter image description here

Share:
13,120
Admin
Author by

Admin

Updated on June 13, 2022

Comments

  • Admin
    Admin almost 2 years

    How do you define the property file to use those values to populate the multi select parameter type of Extended Choice Parameter plugin in Jenkins ?

    The plugin is in Jenkins version : 0.34.

    I tried to configure a multi select based on a property file, but I can't get the plugin to read my property file correctly.

    The file is found.

    If I put one line in the file, I get an error from the plugin saying it needs two lines at least.

    I tried the example with the countries (provided by the help button of the plugin) but it did not work.

    Country City
    United States San Francisco
    United States Chicago
    Mexico Mexico City
    Mexico Cancun

    I tried with a property file :

    a b
    c d

    It didn't work either.

    What did I miss?

    Can it be an encoding problem ?

    I used vi to create the file, is the tabulation ok?

    I couldn't find an answer in these threads :

    Populate 'Multi Select' parameter ('Extended Choice Parameter' plugin) in Jenkins dynamically

    Extended Choice Parameter plugin Multi-Level Select