+1 with Slide. Beware that Hudson!=Jenkins. With Jenkins, you could use groovy ran from CLI. See example (untested) here: http://rcarrillocruz.com/create-jenkins-user-command-line-jenkins-cli-groovy/
-- Baptiste Le 7 mars 2016 7:39 PM, "Slide" <[email protected]> a écrit : > The two projects have diverged significantly, so getting support for > Hudson on the Jenkins list probably won't help. If you need a community > that is alive and running, I recommend you switch to Jenkins. This is not > without its own issues, since you can't just drop Jenkins in on top of the > Hudson directory structure. You would have to recreate your jobs. In the > end though, if you need a community, Jenkins is the way to go. > > On Mon, Mar 7, 2016 at 11:31 AM mpc8250 <[email protected]> wrote: > >> Hi Slide >> Unfortunately, no help from that forum there. Hence the question here. >> >> Thank you. >> >> On Saturday, March 5, 2016 at 9:18:40 AM UTC-6, slide wrote: >> >>> You would want to ask on the Hudson mailing list, this list is for >>> Jenkins. >>> >>> On Sat, Mar 5, 2016 at 1:19 AM mpc8250 <[email protected]> wrote: >>> >> Hi All >>>> >>>> We use Hudson v2.2.1. >>>> How can we add multiple users via command line ? >>>> >>>> Would this work ? We ask because we have a rather old Hudson. >>>> >>>> echo 'hpsr=new hudson.security.HudsonPrivateSecurityRealm(false); >>>> hpsr.createAccount("dummyuser", "dummypassword")' | java -jar >>>> hudson-cli.jar -s http://localhost:8080 groovy = >>>> >>>> >>>> Is there any other command line approach ? >>>> >>>> >>>> Thank you >>>> >>>> -- >>>> 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 [email protected]. >>> >>> >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/dc4f733d-022d-43d8-a9c1-c0f74936f3d0%40googlegroups.com >>>> <https://groups.google.com/d/msgid/jenkinsci-users/dc4f733d-022d-43d8-a9c1-c0f74936f3d0%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/761b45cc-2101-4f85-8ee9-49df33d9f336%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/761b45cc-2101-4f85-8ee9-49df33d9f336%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcw-H-TA07s6xEAHpwBtt0w2bFNHh4bC9Q8Eei5SzRA%2Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcw-H-TA07s6xEAHpwBtt0w2bFNHh4bC9Q8Eei5SzRA%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7OZEQoziLVs2K%3DTk8Qm2HPtwfEgGnAZMfwRRqnTjfdpg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
