Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to reload scm configuration programmatically #44

Open
PeterLappo opened this issue Jul 13, 2016 · 7 comments
Open

how to reload scm configuration programmatically #44

PeterLappo opened this issue Jul 13, 2016 · 7 comments

Comments

@PeterLappo
Copy link

I'm writing an Ansible script that installs Jenkins and loads SCM config from git. I've got most of it working but can't figure out how to invoke http://:/plugin/scm-sync-configuration/reloadAllFilesFromScm from a curl script to force Jenkins to use the config from git.
A curl scripts seems to be the obvious way to do it but can't get it to work.
Any ideas?

@xussof
Copy link

xussof commented Nov 2, 2016

Interested too

@davidx
Copy link

davidx commented Nov 8, 2016

+1

@IsNoGood
Copy link

Trying to solve same issue 👍

@xussof
Copy link

xussof commented Nov 28, 2016

I managed to do it:

Using ansible:

Bash:
curl http://ip-address:8080/plugin/scm-sync-configuration/reloadAllFilesFromScm -u admin:password
curl http://ip-address:8080/reload -u admin:password

@PeterLappo
Copy link
Author

nice one, thanks

@lmilbaum
Copy link

lmilbaum commented Jan 27, 2017

@PeterLappo How did you manage to set the plugin configuration with Ansible? Can you provide the complete tasks list?

@martku
Copy link

martku commented Mar 21, 2017

@xussof To reload Jenkins a POST is needed:

curl -X POST http://ip-address:8080/reload -u admin:password

This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants