How can I specify the working directory for a child pipeline?

I have a single repo with several projects within it, and I am using child pipelines to try to build the sub projects. However, when the subproject pipeline runs, the working directory of the pipeline is the root of the git repo. I have some gitlab pipeline templates for doing things like building projects and testing them and building docker images and pushing them and so forth.

Is there any way to specify the working directory of the child pipeline? Should the trigger should have some way to define it? Or should it always be relative to the directory that the pipeline file is located? Originally I assumed it should work in this way.

Thanks
Richard

3 Likes

Did you ever figure this out?

1 Like

Did either of you figure this out?

It doesn’t seem to be possible, so I created a feature request Allow specifying the working directory for a child pipeline (#346695) · Issues · GitLab.org / GitLab · GitLab

Maybe someday it’ll be implemented

1 Like