RDTK / generator

A tool for creating Jenkins jobs and other things from recipes describing software projects
GNU General Public License v3.0
21 stars 3 forks source link

Empty variable references set referencer NIL #58

Open LeroyR opened 2 years ago

LeroyR commented 2 years ago

Which generator version are you using?

build-generator 0.34.16
asdf            3.3.1
SBCL            2.1.8

What did you do?

  1. Setting a variable to empty Strings "" or " " makes variables that reference this NIL

    • projects/broken.project:

      foo: 1
      bar: 2
      baz: |
      # foo 
      ${foo}
      # bar
      ${bar}
    • distributions/broken.distribution:

      - name: broken
      version: master
      parameters:
       foo: ""
      …

    Same with empty string e.g. " "

Which behavior did you expect?

baz: |
  # foo 

  # bar
  2

What happened instead?

baz: NIL