Re: How to add users via command line with Hudson

8 views
Skip to first unread message

Slide

unread,
Mar 5, 2016, 10:18:39 AM3/5/16
to jenkins...@googlegroups.com
You'd want to ask on the Hudson mailing lists. This list is for Jenkins.

On Sat, Mar 5, 2016 at 12:45 AM Zk W <mpc...@gmail.com> 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 slave.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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2B7%2BkFD02-T3FYKgzcfSdAiRevhsZky-VGzTBoTWYDwehLZG4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages