Groovy missing constructor (in Jenkins post-hook) -


i'm trying modify jenkins authentication setting post-init.groovy.d hook , change jenkins authentication reverseproxy plugin.

by reading others' java code understood, should create reverseproxysecurityrealm instance , call jenkins.instance.setsecurityrealm set realm. tried debug code script console i've got unexpected expection.

i stopped @ creating reverseproxysecurityrealm object groovy, exception groovy.lang.groovyruntimeexception: not find matching constructor for: org.jenkinsci.plugins.reverse_proxy_auth.reverseproxysecurityrealm(string, string, string, string, string, string, string, boolean, string, string, string, string, string, string, string, string, integer, boolean, string, string)

i tried compare declared , used parameters don't see difference.

my code:

import org.jenkinsci.plugins.reverse_proxy_auth.reverseproxysecurityrealm;  def realm=new reverseproxysecurityrealm(     forwardeduser"x-forwarded-user", headergroups="x-forwarded-groups",      headergroupsdelimiter="|", customloginurl="", customlogouturl="",      server="", rootdn="", inhibitinferrootdn=false,      usersearchbase="", usersearch="", groupsearchbase="",     groupsearchfilter="", groupmembershipfilter="", groupnameattribute="",      managerdn="", managerpassword="",      updateinterval=0, disableldapemailresolver=false,     displaynameldapattribute="", emailaddressldapattribute=""     )   

signature of constructor:

public reverseproxysecurityrealm(string forwardeduser, string headergroups, string headergroupsdelimiter, string customloginurl, string customlogouturl, string server, string rootdn, boolean inhibitinferrootdn,                     string usersearchbase, string usersearch, string groupsearchbase, string groupsearchfilter, string groupmembershipfilter, string groupnameattribute, string managerdn, string managerpassword,                     integer updateinterval, boolean disableldapemailresolver, string displaynameldapattribute, string emailaddressldapattribute) { 

unfortunately i'm not java nor groovy guy. hope can read java code don't see difference.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -