gitlab-ci-local
gitlab-ci-local copied to clipboard
--preview doesn't expand variable values
Add support for: https://docs.gitlab.com/ee/ci/variables/#use-variables-in-other-variables
I made a mistake. I thought that this wasn't supported because I didn't see what I expected from gitlab-ci-local --preview. I can see that it is in fact supported when running jobs.
Feature request: gitlab-ci-local --preview should show variable values when possible.
A possible solution: show value in YAML comment.
Job in .gitlab-ci.yml file:
job:
variables:
FLAGS: '-al'
LS_CMD: 'ls "$FLAGS" $$TMP_DIR'
Output from gitlab-ci-local --preview
---
job:
variables:
FLAGS: '-al'
LS_CMD: 'ls "$FLAGS" $$TMP_DIR' # ls "-al" $TMP_DIR
We just decided that --preview should never do this. It breaks to possibility to ship output to https://gitlab.com/ci/lint endpoint