I have a custom docker executor that implements the prepare_exec and run_exec scripts. Is there a way to get the contents of the gitlab-ci.yml contents? IE the commands listed in the scripts section?
I’ve tried to output the contents of the script, ie as shown in example page:
/path/to/run_exec.sh /path/to/tmp/script1 get_sources
and run_exec.sh contains a ‘cat $1’. The contents of the script contain the gitlab-ci.yml commands, but a bunch of other stuff and characters I would have difficulty parsing out.
Or I see in the run_exec substage there is a get_sources, so I can just read in the gitlab-ci.yml if it is available here, but where does it clone?