find/findall does not work in the pipeline sharedlibrary

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      a very simple groovy method calling find/findall() in deliveryLib
      public def lookAtMe()
      {
      def list = [5, 10, 15, 20, 25, 30]
      def result = list.findAll

      {it -> it > 10 }

      }

      in the pipeline job, execute this method
      @Library('deliveryLib')
      @NonCPS
      import company.misc.findLoop
      stage('find') {
      node('build')

      { def obj = new findLoop(this) obj.lookAtMe() }

      }

      result: return false

      Found a similar issue #26300, but marked as "resolved"
      Anyone still have the same problem in jenkins 2.0 or it is only me?

            Assignee:
            Unassigned
            Reporter:
            Wen Zhou
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: