Hi,
we are facing the problem, that a "System Groovy Choice Parameter" behaves
different depending on the user who starts the build.
We've created a job to easily create branch-jobs for users but the job only
works for administrators because we need to access the groups the user who
started the job is member of. All the API-Methods we have tried return an empty
list for "normal" users. For administrators it works without any problem.
To conclude is there any option to access the list of groups a (normal) user
who has started a build is member of in a "System Groovy Script"? We are
retrieving the userId by using:
(0).collect{hudson.model.User.current().getId()}[0];
Thanks,
Sascha
--
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/6E554EC8B07C3344ACEABD98B2B9E8660293B889C134%40HE113606.emea1.cds.t-internal.com.
For more options, visit https://groups.google.com/d/optout.