I am not sure if this is the git clone task issue per se, but might be something you want to take a look at and potentially help me successfully use this task.
When I run the task I get the following log:
Starting: Git Clone
==============================================================================
Task : Git Repository Clone
Description : Git Repository Clone
Version : 2.4.3
Author : Febiunz
Help : [More information](https://github.com/Febiunz/AzureDevOpsExtensionGitClone/blob/master/README.md)
==============================================================================
Try cloning <<REPO_URL>> with branch 'preview' into D:\a\1/configuration-test
git -c http.extraheader="Authorization: bearer " clone --progress -b preview <<REPO_URL>>" "D:\a\1/configuration-test"
Cloning into 'D:\a\1/configuration-test'...
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
Try cloning <<REPO_URL>> with branch 'preview' into D:\a\1/configuration-test
git -c http.extraheader="Authorization: bearer " clone --progress -b preview <<REPO_URL>> "D:\a\1/configuration-test"
Cloning into 'D:\a\1/configuration-test'...
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
Try cloning https://dev.azure.com/PEAKnx/PEAKnx/_git/YOUVI%20Configuration with branch 'preview' into D:\a\1/configuration-test
git -c http.extraheader="Authorization: bearer " clone --progress -b preview <<REPO_URL>> "D:\a\1/configuration-test"
Cloning into 'D:\a\1/configuration-test'...
Logon failed, use ctrl+c to cancel basic credential prompt.
fatal: could not read Username for 'https://dev.azure.com': terminal prompts disabled
##[error]Exception of type 'Microsoft.PowerShell.Commands.WriteErrorException' was thrown.
Finishing: Git Clone YOUVI Configuration - preview
It seems to me that System.AccessToken is not read properly.
I later read in your documentation that I should: "Allow scripts to access the OAuth token" box ticked in the Agent job (Run on agent) settings.
However for some reason I cannot find this option anywhere.
I am using classic editor mode.
Do you have any idea how I could work around this?
Thank you in advance.
Hello,
I am not sure if this is the git clone task issue per se, but might be something you want to take a look at and potentially help me successfully use this task. When I run the task I get the following log:
It seems to me that System.AccessToken is not read properly. I later read in your documentation that I should: "Allow scripts to access the OAuth token" box ticked in the Agent job (Run on agent) settings. However for some reason I cannot find this option anywhere. I am using classic editor mode.
Do you have any idea how I could work around this? Thank you in advance.