You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hello Everybody,
we need to identify the currently logged-in user in an “Extensible Choice Parameter” with Choice Provider “System Groovy Choice Parameter”. We tried the following:
User.current()
Jenkins.getAuthentication()
Build.getCause … which works in a build step but not in an Extensible Choice Parameter
We need the user or more exactly the groups the user is member of to calculate what is displayed in the Choice Parameter dropdown. Is there a way to retrieve the user?
Thanks & best regards,
Sascha Retter
Gur Sannikov
unread,
Nov 27, 2014, 2:06:07 AM11/27/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com, Sascha...@t-systems.com
Hi, I have a solution for you. Please try, return (0).collect{hudson.model.User.current().getDisplayName()};
Sascha...@t-systems.com
unread,
Dec 1, 2014, 3:59:33 AM12/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gursa...@gmail.com, jenkins...@googlegroups.com