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