Having the following error:
remote: TF401019: The Git repository with name or identifier MyRepo does not exist or you do not have permissions for the operation you are attempting. fatal: repository 'https://dev.azure.com/MyCompany/MyProject/_git/MyRepo/' not found
Pipeline:
stages:
- stage: "Stage1"
jobs:
- job: MyJob
displayName: 'MyJob'
pool: 'MyWindowsSrv'
steps:
- checkout: self
persistCredentials: true
- task: PowerShell@2
displayName: Some name...
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
name: some_name
inputs:
targetType: 'inline'
script: |
$path = "C:\MyRepo"
If(!(test-path -PathType container $path))
{
Set-Location C:\ -PassThru
Git clone https://$env:[email protected]/MyCompany/MyProject/_git/MyRepo
}
Set-Location $path -PassThru
Git pull
failOnStderr: true
showWarnings: true
workingDirectory: $(Build.SourcesDirectory)
As you can see, I have also set the security settings:

Any ideas?


Git. While that may happen to work on Windows, it absolutely will not work on Unix or under WSL.repositoryresource and using the standardcheckouttask?