Add a configurable switch on job that causes CPS to silently not continue on non-serializable code

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

XMLWordPrintable

      Allow the addition of a configurable switch on the job that causes CPS to silently not continue on non-serializable code, and a closure that allows you to place arbitrary non-serializable code inline (rather than a method annotation).
      Example:

      def myString = 'adsfasdf'
      def firstTwoLetters = null
      unsafe {
      def matcher = (myString ~= /([a-z]

      {2}

      ).*/)
      if(matcher.matches()){
      firstTwoLetters = matcher.group(1)
      }
      }
      println(firstTwoLetters)

            Assignee:
            Jesse Glick
            Reporter:
            Dan Tranter
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: