I'm trying to checkout a different repository in my pipeline.
These would be the full URLs, so both repositories live in the same Azure DevOps:
https://dev.azure.com/company/Services/_git/mylocal
https://dev.azure.com/company/OtherServices/_git/another
I am trying to execute this in my YAML located in Services/mylocal@develop :
steps:
- checkout: self
- checkout: git://OtherServices/another@develop
From what I understand this should be simple. I have full access to both repos. Nonetheless I am getting:
remote: TF401019: The Git repository with name or identifier another does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://dev.azure.com/company/OtherServices/_git/another' not found
I am not sure if this is even supported in Azure Pipelines. But if it is, then what am I doing wrong? Our DevOps guy says to try with a PAT, but how do you use a PAT in the checkout? I haven't found literature on this regard.
What other options do I have?
Thanks!