Closed hverlin closed 1 week ago
hmm,
(personally i would prefer the 2nd solution, because can't really tell if gitlab.com forget to remove or are they reserving those word for future use
speaking of which, gitlab-ci-local/src/job.ts
our list seemed to deviate a little from https://docs.gitlab.com/ee/ci/jobs/#job-name-limitations
The following all works too eventhough the docs says it's illegal lols..
---
"true":
script:
- echo "test"
"false":
script:
- echo "test"
"nil":
script:
- echo "test"
Filed an issue https://gitlab.com/gitlab-org/gitlab/-/issues/467170
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior According to the documentation, it should not work. https://docs.gitlab.com/ee/ci/jobs/#job-name-limitations
However, it does work: https://gitlab.com/hverlin/gitlab-ci-local-tests/-/pipelines/1324968259
Probably this is a limitation that they forgot to remove from the documentation?
Two solutions:
types
from: https://github.com/firecow/gitlab-ci-local/blob/ba3509a42b5e0155913fb09d0885c93284df1f39/src/job.ts#L69-L73