Re: jenkins docker image create first admin user

2017-08-29 Thread Li Z
Thanks Jacob! It is exactly what I am looking for. Found a link with code too https://gist.github.com/hayderimran7/50cb1244cc1e856873a4 On Tuesday, August 29, 2017 at 11:14:18 AM UTC-7, Jacob Larsen wrote: > > Yes. Put this snippet into a .groovy file, e.g. usercreate.groovy: > > instance =

Re: jenkins docker image create first admin user

2017-08-29 Thread Jacob Larsen
Yes. Put this snippet into a .groovy file, e.g. usercreate.groovy: instance = Jenkins.getInstance() def hudsonRealm = new hudson.security.HudsonPrivateSecurityRealm(false) hudsonRealm.createAccount("admin","Password1234") instance.setSecurityRealm(hudsonRealm) def strategy =

jenkins docker image create first admin user

2017-08-29 Thread Li Z
I am trying to build a Jenkins docker image from jenkins/jenkins:2.67. Is there a way to create the first admin user with dockerfile? Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving