configuring a plugin programmatically

45 views
Skip to first unread message

Peter Lappo

unread,
Jul 14, 2016, 11:26:38 AM7/14/16
to Jenkins Users
Hi,
I'm writing an Ansible script that installs Jenkins and loads SCM config from git using the scm-sync-configuration-plugin. 
I've got Jenkins installed and running, pulled the config from git but I need to reload the Jenkins config files from SCM which is easy manually as there is a link on Manage Jenkins / Configure System called Reload which is page http://<hostname>/plugin/scm-sync-configuration/reloadAllFilesFromScm. 
However, I can't figure out how to invoke this link with either curl or the jar-cli.
Any ideas?

My ultimate goal is to fully automate the installation and configuration of Jenkins so that I can start Jenkins on any machine with the last known configuration stored in git.

Thanks
Peter

Reply all
Reply to author
Forward
0 new messages