Re: How to get current users LDAP groups in groovy-script

2014-06-25 Thread mku
I found a solution. Just in case anybody is interested: Within scriptler i created a script groovy-script similar to this: import hudson.model.* def allowed_environments = ["dev","test","test-integration"] if ("adm_proj_a" in User.current().getAuthorities() ) {

How to get current users LDAP groups in groovy-script

2014-06-23 Thread mku
I have setup a parametrized job for self-service deployments in Jenkins. Users can select a version of the application and the environment to deploy to. The available environments displayed to the user is currently just a static list of strings (*choice parameter*). *Now i want to restrict deplo