Skip to content

Variable definitions with multiple children result in broken values

The construction of the variables section seems to be buggy when it is not a pure dictionary, and assumes the value is comprised of all its children, like in this sample gitlab-ci.yml:

variables:
  SOMEVAR:
    description: foo
    value: bar

job:
  script:
    - echo "SOMEVAR=$SOMEVAR"

When run with gle job, the command prints:

>>> execute job:
2022-12-20 12:24:18,328 gitlab-emulator  running shell job job
SOMEVAR={'description': 'foo', 'value': 'bar'}
Build complete!

... while the correct would have been (synthesized output)_:

>>> execute job:
2022-12-20 12:24:18,328 gitlab-emulator  running shell job job
SOMEVAR=bar
Build complete!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information