Give permission to user via Java Code

14 views
Skip to first unread message

Nitish Kumar

unread,
Apr 14, 2015, 2:59:30 AM4/14/15
to jenkins...@googlegroups.com
Hi,

Currently my java plugin for jenkins is creating and configuring jobs as anonymous user. I have created another user with name "USER1".
If I want to access jenkins with USER1 via java code, how should I do this.

Currently, what I can create is Jenkins instance,
Jenkins j=Jenkins.getInstance();

Can someone point me right direction.


Regards,
Nitish
 

Baptiste Mathus

unread,
Apr 24, 2015, 1:27:05 AM4/24/15
to jenkins...@googlegroups.com
Are you logged in with that USER1 account while using your plugin through Jenkins?
Cheers

--
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/8fd841b9-2864-4ac8-a0f7-fa4b75d5e682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Reply all
Reply to author
Forward
0 new messages