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

Upgrade Groovy from 2.4.11 to 3.0+

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Groovy 3.0 is required to run on Java 11+ without reflective access warnings logged on startup

      Jenkins currently bundles 2.4.11.

      We need to explore whether Groovy-based logic runs well with Java 11+, including:

      • Groovy-based UI forms
      • System Groovy Console
      • Plugins using Groovy
      • Pipeline

        Attachments

          Issue Links

            Activity

            Hide
            alexanderstohr Alexander Stohr added a comment -
            Show
            alexanderstohr Alexander Stohr added a comment - is it possible? yes/no i have varying indications, e.g. this one tells about 2.5.x was used: https://issues.jenkins.io/browse/JENKINS-53372?focusedCommentId=370924&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-370924
            Hide
            ianw Ian Williams added a comment -

            Oleg Nenashev, OP says groovy 3.x required to tun on Java 10.

            The the discussion is to move core baseline to Java 11, does that not also require a move to Groovy 3.x?

            Show
            ianw Ian Williams added a comment - Oleg Nenashev , OP says groovy 3.x required to tun on Java 10 . The the discussion is to move core baseline to Java 11 , does that not also require a move to Groovy 3.x?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Ian Williams yes, it may require a move to Groovy 3.x. Note that we do not have a consensus about moving to Java 11+ at the moment. We will be updating the Docker images to use Java 11 by default, and then we will see what is the feedback

            Show
            oleg_nenashev Oleg Nenashev added a comment - Ian Williams  yes, it may require a move to Groovy 3.x. Note that we do not have a consensus about moving to Java 11+ at the moment. We will be updating the Docker images to use Java 11 by default, and then we will see what is the feedback
            Hide
            ianw Ian Williams added a comment -

            As long as the Jenkins team keep this in mind when making any decision for 8 -> 11. Would the to see that go ahead and then all sorts of things go South, worse than tables to divs, based on the level of effort and potential blast radius if Groovy u/g was overlooked, especially since as it stand now, 8's availability will exceed 11's .

            Show
            ianw Ian Williams added a comment - As long as the Jenkins team keep this in mind when making any decision for 8 -> 11. Would the to see that go ahead and then all sorts of things go South, worse than tables to divs, based on the level of effort and potential blast radius if Groovy u/g was overlooked, especially since as it stand now, 8's availability will exceed 11's .
            Hide
            timja Tim Jacomb added a comment -

            I did a spike on this awhile back

            Updating the version itself does work work in Jenkins, basic smoke testing produced no issues.

            But there's a lot more work needed to be done to validate it,

            See some comments on the work required:
            https://github.com/jenkinsci/jenkins/pull/5112#issuecomment-744429487
            https://github.com/jenkinsci/jenkins/pull/3605#issuecomment-465557917

            Show
            timja Tim Jacomb added a comment - I did a spike on this awhile back Updating the version itself does work work in Jenkins, basic smoke testing produced no issues. But there's a lot more work needed to be done to validate it, See some comments on the work required: https://github.com/jenkinsci/jenkins/pull/5112#issuecomment-744429487 https://github.com/jenkinsci/jenkins/pull/3605#issuecomment-465557917

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              12 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated: