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

expected to call CpsGroovyShell.evaluate but wound up catching <something>.run

    Details

    • Similar Issues:
    • Released As:
      workflow-cps 2.75

      Description

      We found a change that prints an annoying warning about the CPS mismatch during running the MPL module: https://github.com/griddynamics/mpl/issues/31

      Running on Jenkins in /var/jenkins_home/workspace/mpl-master
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Checkout)
      [Pipeline] fileExists
      expected to call org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.evaluate but wound up catching Checkout.run; see: https://jenkins.io/redirect/pipeline-cps-method-mismatches/

      We're not quite sure how to fix that in the library, but realized that the issue is related to the change JENKINS-31314 introduced in workflow-cps-2.71.

      Reproduce is quite simple - just need to install the minimal latest jenkins, add required git & shared lib plugins, attach mpl library from github and create a simple jenkins job to build the mpl. It will fail (no Maven 3 tool) - but will show the issue during each module start.

      Who could help with determining the actual cause and how to fix that?

        Attachments

          Issue Links

            Activity

            sparshev Sergei Parshev created issue -
            sparshev Sergei Parshev made changes -
            Field Original Value New Value
            Link This issue is caused by JENKINS-31314 [ JENKINS-31314 ]
            sparshev Sergei Parshev made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            sparshev Sergei Parshev made changes -
            Assignee Sergei Parshev [ sparshev ]
            jglick Jesse Glick made changes -
            Summary MPL shared library logic execution caused CPS mismatch warning expected to call CpsGroovyShell.evaluate but wound up catching <something>.run
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "cloudbees/groovy-cps#101 (Web Link)" [ 23911 ]
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "jenkinsci/workflow-cps-plugin#315 (Web Link)" [ 23912 ]
            dnusbaum Devin Nusbaum made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Released As workflow-cps 2.75
            sparshev Sergei Parshev made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                sparshev Sergei Parshev
                Reporter:
                sparshev Sergei Parshev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: