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

readYaml not parsing simple nested variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.452.2
      Plugin Version 2.17.0

      When reading in a _very simple _ nested yaml, readYaml does not convert it to a nested map, but to a flat map.

      The following snippet gives

      def myYaml = "aim.setup: true"
      yamlMap = readYaml(text: myYaml)
      
      

      a map with key 

      aim.setup

      (not a map aim -> map: setup: true.

      With more complex yamls, I don't face the problem.

            rsandell rsandell
            danielschuh Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: