How to get URL of the repository in which a script resides?
I have two Gitlab repos A and B.
A contains a .gitlab-ci.yml including a script from B
...
include:
- project: path/to/B
ref: main
file: template/.gitlab-ci-common.yml
...
In addition to including a generic script from B, I also need to fetch some files from B. To reach them want to do a soft git clone of B. Since it is a generic reusable functionality, I want to have it in template/.gitlab-ci.yml of B:
Thanks for response. This is actually how I am doing it at present, but thought there is a solution that won’t require duplication of the PROJECT_B_PATH.
Anyway, even project: '${PROJECT_B_PATH}' was not working for me, had to hard code the URL (or path) there - if I could avoid at least that, would be good.