API to configure plugins

Asked by Vinay

Hi,

I"m looking for help regarding configuring the plugins dynamically using API.

My problem is, I'm generating jenkins instances dynamically with preset of plugins, but I need to configure some values inside the plugins during runtime (after the instance got provisioned) , lets say as post-setup script.

Since the value of these plugin configuration is going to be dynamic (each jenkin instance have different plugin configuration), I can't use same config.xml file for all the jenkins instances. I'm looking to see if there a way to configure the plugins thru API?

Ex: I have kubernetes plugin which expects the jenkins master URL to be filled, but that value would be known once I start the jenkins master. So I somehow need to configure it dynamically (automated fashion) thru API. I can ask the user to do this step manually, but that will be little hassle to the end user. I'm trying to see if I can automate this during setup iteself.

Please let me know if there a way to update the plugin configuration thru API.

Question information

Language:
English Edit question
Status:
Expired
For:
Python Jenkins Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.