Double use of "
In https://docs.gitlab.com/ee/ci/triggers/#ci-job-token, the script is quoted, and then a post variable is also quoted using the same level of quotation, making this invalid YAML.
Proposal: Remove the quotes around the script. e.g.
script:
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.example.com/api/v4/projects/9/trigger/pipeline
/cc @axil @bikebilly