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

Add Grape @Grab Support to Scriptler Plugin

    XMLWordPrintable

Details

    Description

      Possibly similar to https://issues.jenkins-ci.org/browse/JENKINS-16361 in dsl-plugin.

      Scriptler Groovy scripts using the @Grape annotation fail with:

      Execution of script [CiDbPoller.groovy] failed - java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReportorg.jenkinsci.plugins.scriptler.util.GroovyScript$ScriptlerExecutionException: java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReport
      at org.jenkinsci.plugins.scriptler.util.GroovyScript.call(GroovyScript.java:108)

      In the issue related to dsl plugin, it seems that there is a resolution available. It would be nice if it could be applied here as well.

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer added a comment -

            Pretty sure this can be solved in the same way - just add a dependency on Ivy to the plugin. Testing this now, actually.

            abayer Andrew Bayer added a comment - Pretty sure this can be solved in the same way - just add a dependency on Ivy to the plugin. Testing this now, actually.

            sounds like a good idea, let me know if the "Ivy trick" works

            domi Dominik Bartholdi added a comment - sounds like a good idea, let me know if the "Ivy trick" works
            abayer Andrew Bayer added a comment -

            Boo. Didn't work for me with the groovy plugin, at least - getting stuff into the Jenkins system classloader is problematic...

            abayer Andrew Bayer added a comment - Boo. Didn't work for me with the groovy plugin, at least - getting stuff into the Jenkins system classloader is problematic...

            People

              domi Dominik Bartholdi
              timor_raiman Timor Raiman
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: