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

broken ProjectNamingStrategy Extension

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I can't create custom RoleBasedProjectNamingStrategy, jenkins rise error:

      Error

      java.lang.ClassNotFoundException:
      org.jenkinsci.plugins.RoleBasedProjectNamingStrategy

      https://github.com/jenkinsci/jenkins/blob/a2d9bac03da99d739ecf7ce0be9ba793b93d2c88/core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java#L49

      <jglick> KostyaSha: #L49 is to blame; should use PluginManager.uberClassLoader. But the whole logic here is probably overcomplicated; Stapler ought to find and bind the class automatically if invoked right.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Confirmed.
            I've seen the same issue in https://github.com/synopsys-arc-oss/categorization-plugin (not released) and sent a message to Domi, but seems that we both forgot to continue the discussion and to register the issue in JIRA.

            Show
            oleg_nenashev Oleg Nenashev added a comment - Confirmed. I've seen the same issue in https://github.com/synopsys-arc-oss/categorization-plugin (not released) and sent a message to Domi, but seems that we both forgot to continue the discussion and to register the issue in JIRA.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kanstantsin Shautsou
            Path:
            core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java
            http://jenkins-ci.org/commit/jenkins/9568986efb1f435ca2c95422c57fcf579c8bf222
            Log:
            [FIXED JENKINS-23127] Allow loading classes from plugins.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kanstantsin Shautsou Path: core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java http://jenkins-ci.org/commit/jenkins/9568986efb1f435ca2c95422c57fcf579c8bf222 Log: [FIXED JENKINS-23127] Allow loading classes from plugins.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html http://jenkins-ci.org/commit/jenkins/6302c50be327dddc5a94e06f471a3d671fe4aa83 Log: JENKINS-23127 Noting merge of #1244. Compare: https://github.com/jenkinsci/jenkins/compare/1a4e17b742f7...6302c50be327
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3394
            [FIXED JENKINS-23127] Allow loading classes from plugins. (Revision 9568986efb1f435ca2c95422c57fcf579c8bf222)
            JENKINS-23127 Noting merge of #1244. (Revision 6302c50be327dddc5a94e06f471a3d671fe4aa83)

            Result = SUCCESS
            Kanstantsin_Shautsou : 9568986efb1f435ca2c95422c57fcf579c8bf222
            Files :

            • core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java

            Jesse Glick : 6302c50be327dddc5a94e06f471a3d671fe4aa83
            Files :

            • changelog.html
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3394 [FIXED JENKINS-23127] Allow loading classes from plugins. (Revision 9568986efb1f435ca2c95422c57fcf579c8bf222) JENKINS-23127 Noting merge of #1244. (Revision 6302c50be327dddc5a94e06f471a3d671fe4aa83) Result = SUCCESS Kanstantsin_Shautsou : 9568986efb1f435ca2c95422c57fcf579c8bf222 Files : core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java Jesse Glick : 6302c50be327dddc5a94e06f471a3d671fe4aa83 Files : changelog.html
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kanstantsin Shautsou
            Path:
            src/main/java/org/jenkinsci/plugins/rolestrategy/RoleBasedProjectNamingStrategy.java
            http://jenkins-ci.org/commit/role-strategy-plugin/efad46a5c7f9165ae37103dc24efd5f3f12ba3ce
            Log:
            Show warning for required version, because there is no ways to disable Extension point. Usage on such version will end with ClassNotFound exception. Fixed in JENKINS-23127.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kanstantsin Shautsou Path: src/main/java/org/jenkinsci/plugins/rolestrategy/RoleBasedProjectNamingStrategy.java http://jenkins-ci.org/commit/role-strategy-plugin/efad46a5c7f9165ae37103dc24efd5f3f12ba3ce Log: Show warning for required version, because there is no ways to disable Extension point. Usage on such version will end with ClassNotFound exception. Fixed in JENKINS-23127 .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kanstantsin Shautsou
            Path:
            core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java
            http://jenkins-ci.org/commit/jenkins/afe7da541642e40d60982d459e2802ae81357e34
            Log:
            [FIXED JENKINS-23127] Allow loading classes from plugins.

            (cherry picked from commit 9568986efb1f435ca2c95422c57fcf579c8bf222)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kanstantsin Shautsou Path: core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java http://jenkins-ci.org/commit/jenkins/afe7da541642e40d60982d459e2802ae81357e34 Log: [FIXED JENKINS-23127] Allow loading classes from plugins. (cherry picked from commit 9568986efb1f435ca2c95422c57fcf579c8bf222)

              People

              • Assignee:
                integer Kanstantsin Shautsou
                Reporter:
                integer Kanstantsin Shautsou
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: