SOLUTION
The solution is to override the checkout step in the pipeline: https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#checkout
steps:
- checkout: self
submodules: true
persistCredentials: true
CLICK HERE to find out more related problems solutions.