Determine groups of user inside System

2015-01-27 Thread Sascha.Retter
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 th

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 Param

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