Hi,

I would like to reload config.xml file of a job programmatically.
I've tried : 
AbstractItem item = (AbstractItem) Jenkins.getInstance().getItem("myjob");
File directoryConfigXml = item.getConfigFile().getFile().getParentFile();
Items.load(item.getParent(), directoryConfigXml);

But this code portion does not reload configuration and the jobs still has 
its old configuration in cache.

If I reload Jenkins, the configuration is correctly reloaded.

How can I reload the configuration of my job?


Reply via email to