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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      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.

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: