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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dc4f733d-022d-43d8-a9c1-c0f74936f3d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/761b45cc-2101-4f85-8ee9-49df33d9f336%40googlegroups.com.
+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
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcw-H-TA07s6xEAHpwBtt0w2bFNHh4bC9Q8Eei5SzRA%2Bg%40mail.gmail.com.