I'm trying to checkout a submodule from another project in azure devops.
steps:
- checkout: self
submodules: true
persistCredentials: true
clean: true
Checking out another repository in the same project works.
GOAL
Add as submodule REPOSITORY A in REPOSITORY B.
However i get the error:
Cloning into 'E:/build/Agent5/_work/16/s/.azuredevops'...
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
fatal: clone of 'https://dev.azure.com/ORGANIZATION/PROJECTA/_git/REPOSITORYA' into submodule path 'E:/build/Agent5/_work/16/s/.azuredevops' failed
How can i achieve this using YAML in Azure DevOps Repositories?
There was on option "Limit job authorization" that was checked on by default, in the Project Settings (bottom of the the left menu).
Turning it off solved the issue.
And FYI I just had this to be added in the yaml, under steps:
:
- checkout: self
submodules: true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With