问题
I have a choice list for a parameter. The values in choice list is based on user who logs in jenkins. For example a student opts for subjects maths science and commerce, he should be able to see his own subjects in the choice drop down.
I have the mapping of each student with their enrolled subject in a json file. I used Config File Provider plugin to refer this file in jenkins. Now how should I load this configuration files through groovy script in the choice parameters. I am using Extended Choice Paremater and Active Choice Parameter plugin
来源:https://stackoverflow.com/questions/54107733/read-config-file-in-jenkins-groovy-script-for-build-parameters