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

Please add general support for Grape (and ivy)

    XMLWordPrintable

Details

    Description

      Please add general support for Grape in every groovy script.
      This could be done by adding ivy to the Jenkins classpath

      Since Jekins supports groovy scripting in many places, it would be best to handle it globally, not inside specific plugins.

      Background:
      if you use @Grab and @Grape annotations inside any kind of groovy scripts, you will get this error:

      java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReport
      

      Reason: grape personal dependency ivy is not present on Jenkins classpath
      see: https://groups.google.com/forum/#!topic/jenkinsci-issues/wMdNET2L3TU

      There is a solution only for 'job-dsl-plugin', but a general support would be more suitable:
      see also: https://issues.jenkins-ci.org/browse/JENKINS-16361
      and https://issues.jenkins-ci.org/browse/JENKINS-18349
      and https://issues.jenkins-ci.org/browse/JENKINS-18400

      Attachments

        Issue Links

          Activity

            bence_takacs Bence Takacs added a comment -

            Many related issues specific to a plugin
            But a general solution would be better

            (if you don't want to support @Grape somewhere - you can point that out / document and throw an exception saying "Jenkins does not enable using @Grape at this point")

            bence_takacs Bence Takacs added a comment - Many related issues specific to a plugin But a general solution would be better (if you don't want to support @Grape somewhere - you can point that out / document and throw an exception saying "Jenkins does not enable using @Grape at this point")

            People

              Unassigned Unassigned
              bence_takacs Bence Takacs
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: