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

Support String.eachMatch, String.findAll in Pipeline

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      I'd like the ability to iterate over regex matches against a string.

      Thus far my attempts at using eachMatch and findAll have both met a similar end:

       

      00:04:43.237 Got exception: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods eachMatch java.lang.String java.lang.String groovy.lang.Closure [Pipeline] }

            abayer Andrew Bayer
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: