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

readYaml IllegalArgumentException with codePointLimit

XMLWordPrintable

      We're using 2.16.0 and this is failing from within a shared library class:

      def yaml = script.readYaml file: results, codePointLimit: 10485760 

      With:

      16:08:12  java.lang.IllegalArgumentException: Could not instantiate {file=scanner-results.yaml, codePointLimit=134217728} for org.jenkinsci.plugins.pipeline.utility.steps.conf.ReadYamlStep: java.lang.reflect.InvocationTargetException
      

      I've also added logs to print the class of the parameters passed:

      file:  class java.lang.String
      limit: class java.lang.Integer
      

      It may be related to JENKINS-71077

            rsandell rsandell
            sblatnick Steve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: