Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Thats's not Gitlab's fault, it's the YAML parser, it thinks that entry is an object with a key named «echo "Building kube extensions».
Add single quotes around the entire entry and it should parse it correctly. -
Which editor do you use? With VS Code´s YML syntax highlighter the issue would've been obvious immediately
Also, are you building a gitlab runner deployed to Kubernetes in gitlab ci? :D -
In fact you can clearly see in OP's screenshot that the Gitlab syntax highlighter is correctly highlighting the key and value parts.
-
ha.. then it must be my mistake. I didn't think a double-quote is a valid character in a yaml key.
-
@webketje vim :)
> Also, are you building a gitlab runner deployed to Kubernetes in gitlab ci? :D
yes. https://gitlab.com/netikras/KubICon -
Encoding a script into a list of lines looks like asking for trouble to me. Better use a string block for that - if supported by GitLab.
script: |
Indented lines of script -
Words cannot express how much I hate, hate, hate YAML with its fucked up ambiguous syntax, book-sized definition and the resulting scarcity of fully compliant parsers.
-
@lbfalvy Apart from the references (asking for entity expansion bomb attacks), optional custom types (anyone ever used that?) and too lax key name rules, it actually is a relatively sane standard though. Definitely better than JSON and XML. But yes: Having to look up string block syntax every time sucks. There aught to be a way to dumb that down a bit.
Related Rants
GitLab, you really should fix your CI.
I mean, I know .gitlab-ci.yml has to be written carefully, having in mind that GL shell is a castrated bourne shell, but come on... Failing a pipeline because I used a semicolon in an `echo` parameter string?
echo ""items: 0" ## this will fail
echo "items 0" ## this will pass
This is a bit too much.
Removed the semicolon and the pipeline worked just fine.
rant
ci
gitlab
shell
gitlab ci