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

PluginFirstClassLoaders don't work with GroovyClassLoader.loadClass for .groovy files

    Details

    • Type: Bug
    • Status: In Review
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      This was uncovered in the context of https://github.com/jenkinsci/kubernetes-plugin/pull/127 - PluginFirstClassLoader.findResource always returns null, which seems to result in CpsScript.getClass().getClassLoader().loadClass("some.class.in.resources.groovy") failing (for that matter, UberClassLoader.findResource("some/file/from/a/PluginFirstClassLoader") always returns null, which I'm guessing is the problem). Needs more investigation to figure out exactly what's happening here.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: