Try setting the system property jenkins.install.runSetupWizard to false.

https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties

> On 22.02.2017, at 22:24, Farrukh Najmi <farrukh.n...@gmail.com> wrote:
> 
> Hi Guys, I am trying to setup Jenkins using the chef recipe at 
> https://supermarket.chef.io/cookbooks/jenkins. 
> 
> I would like to provision jenkins plugins using the CLI but have run into a 
> bootstrapping issue. 
> 
> Seems the default installation uses a strict config.xml that requires 
> <useSecurity>true</useSecurity>. 
> This means I cannot use the CLI to install plugins during provisioning 
> because I cannot do so as anonymous user. 
> 
> I tried updating the config.xml file to have:
> 
>  <useSecurity>false</useSecurity> 
> 
> But it seems that upon "service jenkins restart" my config.xml file gets 
> reverted to its original value. Any suggestions on how top work around this?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/99f11d26-b9c2-466a-b7cb-655705b7e8dd%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CE96F7BE-8373-4ADA-80BB-2747FD106BFD%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to