I'm trying to add a submodule to my Azure DevOps yaml pipeline.
I Added the step to checkout the submodule.
steps:
- checkout: self
submodules: true
The only side effect I'm having now is that it's moving the entire build repository to a subfolder (the name of the repository).
I'm trying to find out how to set the root back to the build directory back again. I tried setting the path
below the submodule in the checkout step. I just can't seem to find where I need to set this paramter and how it's called.
I was reading about the variables over here: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
I was reading about the azure git repos over here: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml
None of these resources say how to fix this.
Can anyone help me with this?