I've a gitlab-ci file that works as is no problem, however, a question has been asked as to whether we can abstract the contents of this file/move this file to another repo and reference the file instead, and once called upon all stages within the file will run.
gitlab-ci.yml file
stages:
- deployment
test:
stage: deployment
trigger:
include: /reference/to/file.yml
The error I'm receiving is "No stages/jobs for this pipeline" - any help would be greatly appreciated