Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-30 Thread Ewelina Wilkosz
Hi Edd, "reload existing configuration" won't restart your Jenkins, it takes a second, maybe a couple of seconds to apply new configuration but Jenkins is not going down regarding the API I encourage you to join our gitter chat room: https://gitter.im/jenkinsci/configuration-as-code-plugin

Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-29 Thread Edd Grant
Thanks for this Jan, wasn't aware of this, will investigate further. On Thursday, 9 August 2018 06:59:10 UTC+1, Jan Monterrubio wrote: > > You can post the script contents to the script run endpoint I believe. > > “ > A Jenkins Admin can execute groovy scripts remotely by sending an HTTP > POST

Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-29 Thread Edd Grant
Hi Ewelina, Thanks for this, I have installed the configuration-as-code plugin and have had a quick look. I can see there's a "reload existing configuration" button in the UI. Is this accessible via the Jenkins API? I ask as we want to be able to dynamically configure the Jenkins master

Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-09 Thread Ewelina Wilkosz
Hi Edd, maybe you can have a look at https://github.com/jenkinsci/configuration-as-code-plugin release 1.0 is coming soon, we have a number of alphas already out. maybe it can solve your issues - if not it's always good to hear what's missing :) On Friday, August 3, 2018 at 10:08:52 AM UTC+2,

Re: Is it possible to re-run init.groovy.d scripts whilst Jenkins is running?

2018-08-08 Thread Jan Monterrubio
You can post the script contents to the script run endpoint I believe. “ A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/. “ From https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console#JenkinsScriptConsole-Remoteaccess