Can't add ":' in echo command

Hi @ozbillwang

this is unfortunate YAML limitation. If you need : in a YAML you need to quote the entire string.

job1:
  script:
    - echo "Error: YAML hates me" # this results in YAML syntax error
    - "echo \"Error: YAML loves me\"" # this is the correct YAML syntax
4 Likes