The error says it has no permission. The question is how to use the pipeline token in the upstream pipeline/project. (I know with 'curl' script the token could be set but now I just would like to use the keyword 'trigger') Thanks!
@VonC Thanks for your reply. Here's the job in the yaml. ‘trigger' is used to start the downstream pipeline. But since they're different and the downstream pipeline is running against the master pipeline, the guy who triggers the pipeline should be a maintainer of the downstream project. Otherwise, the job will not run and the prompt is 'no permission to trigger downstream pipeline'.
trigger-test
stage: test
trigger:
project: myprj/downstream-test
branch: master
allow_failure: true
only:
- master