AW: Retrieve user in System Groovy Choice Parameter

2014-12-01 Thread Sascha.Retter
Hi, thank you! That seems to work. Mit freundlichen Grüßen / Best regards Sascha Retter Von: Gur Sannikov [mailto:gursanni...@gmail.com] Gesendet: Donnerstag, 27. November 2014 08:06 An: jenkinsci-users@googlegroups.com Cc: Retter, Sascha Betreff: Re: Retrieve user in System Groovy Choice

Re: Retrieve user in System Groovy Choice Parameter

2014-11-26 Thread Gur Sannikov
Hi, I have a solution for you. Please try, return (0).collect{hudson.model.User.current().getDisplayName()}; On Friday, October 24, 2014 10:09:05 AM UTC+3, sascha...@t-systems.com wrote: Hello Everybody, we need to identify the currently logged-in user in an “Extensible Choice

Retrieve user in System Groovy Choice Parameter

2014-10-24 Thread Sascha.Retter
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