Read Config file in jenkins groovy script for build parameters

随声附和 提交于 2020-01-24 20:00:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!