fail to readYaml without setting MAX_CODE_POINT_LIMIT in java opt

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

XMLWordPrintable

      This code fail for every yaml

       try

      {         def processResponse1 = readYaml text: testYaml         writeYaml file: "test1.yaml", data: processResponse1, overwrite: true     }

      catch (Exception){
              println("Failing  ${Exception}")
          }

       

      Error :

      [2024-08-06T15:54:32.441Z] , codePointLimit=9437184} for org.jenkinsci.plugins.pipeline.utility.steps.conf.ReadYamlStep: java.lang.reflect.InvocationTargetException

       

      Fixed by :

      Environment="JAVA_OPTS=$JAVA_OPTS -Dorg.jenkinsci.plugins.pipeline.utility.steps.conf.ReadYamlStep.MAX_CODE_POINT_LIMIT=9437184

            Assignee:
            Emilio Escobar
            Reporter:
            doron
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: