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

Operator {{in}} stopped working in Groovy expression in combination filter

    Details

    • Similar Issues:

      Description

      After upgrading I had to rewrite all my content filter expressions from using value in array form to array.contains(value) form, otherwise I was getting java.lang.IllegalArgumentException: 573 at org.kohsuke.groovy.sandbox.impl.Ops.binaryOperatorMethods(Ops.java:29) exceptions. The in operator works fine in groovy console and groovy post-build steps.

      The relevant backtrace is:

      Caused by: java.lang.IllegalArgumentException: 573
      	at org.kohsuke.groovy.sandbox.impl.Ops.binaryOperatorMethods(Ops.java:29)
      	at org.kohsuke.groovy.sandbox.impl.Checker.checkedBinaryOp(Checker.java:347)
      	at org.kohsuke.groovy.sandbox.impl.Checker$checkedBinaryOp.callStatic(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:50)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:173)
      	at Script1.run(Script1.groovy:1)
      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:139)
      	at hudson.matrix.FilterScript.evaluate(FilterScript.java:45)
      	at hudson.matrix.FilterScript.apply(FilterScript.java:85)
      	at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101)
      	at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91)
      	at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:638)
      	at hudson.matrix.MatrixProject.submit(MatrixProject.java:887)
      	at hudson.model.Job.doConfigSubmit(Job.java:1188)
      	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:785)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      	... 70 more
      

        Attachments

          Issue Links

            Activity

            Hide
            mkorvas Matěj Korvas added a comment -

            I just learned about this ticket and it appears as a duplicate of JENKINS-28154 to me. Can it be marked as resolved then?

            Show
            mkorvas Matěj Korvas added a comment - I just learned about this ticket and it appears as a duplicate of JENKINS-28154 to me. Can it be marked as resolved then?
            Hide
            bulb Jan Hudec added a comment -

            The symptoms and the stack trace seem identical, so yes, I believe they are duplicates. It could be closed then (I won't be able to test yet though; it will take some time until we get to upgrade the server and then it will still be to LTS only).

            Show
            bulb Jan Hudec added a comment - The symptoms and the stack trace seem identical, so yes, I believe they are duplicates. It could be closed then (I won't be able to test yet though; it will take some time until we get to upgrade the server and then it will still be to LTS only).

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                bulb Jan Hudec
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: