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

YAML Project action doesn't give the correct dump for multi-line values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • yaml-project-plugin
    • None

      When you have a multi-line value, snakeyaml (as least how I have it configured) doesn't seem to dump things properly. We want:

      • kind: !shell
        command: |
        #!/bin/bash -e
        ...

      However, the value it simply dumped regardless of the existence of new lines as:

      • kind: !shell
        command: #!/bin/bash -e
        ...

      Which won't parse properly.

            mattmoor Matthew Moore
            mattmoor Matthew Moore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: