Are you logged in with that USER1 account while using your plugin through Jenkins? Cheers
2015-04-14 8:59 GMT+02:00 Nitish Kumar <[email protected]>: > 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 > > > -- > 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/8fd841b9-2864-4ac8-a0f7-fa4b75d5e682%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/8fd841b9-2864-4ac8-a0f7-fa4b75d5e682%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- 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/CANWgJS5%2Bg%3DxBetetC41b0w9sNDTWm1%3Dg-JCMQFqouwAAsVUtgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
