Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73358

"NoSuchMethodException" for plugin "rolestrategy"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • role-strategy-plugin
    • None
    • Linux: Amazon Linux 2023.4.20240611 (also tried ubuntu20 and ubuntu22, same issue)
      Jenkins: 2.332.2-1.1
      "role-strategy" plugin: 3.2.0

      Dear Export,

      I had installed Jenkins 2.332 and plugin "rolestrategy@3.2.0", then configure the plugin with a groovy script located at $JENKINS_HOME/init.groovy.d/init.03.3.roles_and_permissions.groovy.

      But after restart jenkins, jenkins failed to run, I get error log from jenkins log:

      java.lang.NoSuchMethodException: com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy.assignRole(java.lang.String, com.michelin.cio.hudson.plugins.rolestrategy.Role,java.lang.String)

       

      I attached 2 files to this ticket:

      groovy configuration: "init.03.3.roles_and_permissions.groovy" (line 673 caused the issue)

      error log: "jenkins.log"

       

      May I check if i can get some help for your side, thank you.

        1. init.03.3.roles_and_permissions.groovy
          24 kB
          Aaron
        2. jenkins.log
          115 kB
          Aaron
        3. linux file.log
          8 kB
          Aaron
        4. system info.txt
          6 kB
          Aaron

            oleg_nenashev Oleg Nenashev
            haichaoli Aaron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: