RoleBasedAuthorizationStrategy - assignRole not working properly

Jenkins setup: Running Latest Jenkins Version 2.401.3

All plugins are latest.

Im getting below error

groovy.lang.MissingMethodException: No signature of method: com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.doAssignGroupRole() is applicable for argument types: (com.synopsys.arc.jenkins.plugins.rolestrategy.RoleType, java.lang.String, java.lang.String) values: [Global, all-folders-r, 4205c454-5001-7081-98f9-9b899b1b701d]
Possible solutions: doAssignGroupRole(java.lang.String, java.lang.String, java.lang.String), doUnassignGroupRole(java.lang.String, java.lang.String, java.lang.String)

Tried with assignrole also

you’re using the rest api method in groovy. The rest api expects strings as parameters. You can’t pass here an object of type RoleType. Use globalRoles if you want to assign to a global role, projectRoles or slaveRoles respectively

yes able to fix it as it got changed in the latest version.

1 Like