Closed e-picas closed 6 months ago
Should
stages:
- .pre
- build
- test
- deploy
- .post
be printed?
Right now the most complex form of objects are rendered in in --preview
Hello @firecow yes, the stages can be displayed without breaking anything (as far as I know).
Minimal .gitlab-ci.yml illustrating the issue
With the following YML:
I have the following
--preview
rendering:Which does not pass the
ci/lint
GitLab API route validation becauseneeds.need.pipeline
andneeds.need.project
can only be a string:Expected behavior
The
needs.need.pipeline
andneeds.need.project
should not be rendered if they do not have a (string) value.I can see in the code it's quite a recent new feature: https://github.com/firecow/gitlab-ci-local/blame/master/src/data-expander.ts#L88. I think a simple verification of the existence of the value can be enough to fix this.
Host information
Ubuntu gitlab-ci-local master (not released for now)