I created a pipeline in azure devops, added three tasks in order listed below:
1) Command line task
2) Powershell task
3) Command line task
task 1)
git config --global user.email "[email protected]"
git config --global user.name "xxxx"
cd $(Build.SourcesDirectory)
git init
task 2) Powershell task
task 3)
git add filename.csv
git commit -m "csv file update"
git remote rm origin
git remote add origin https://[email protected]/OrgName/ProjectName/_git/RepoName
git push -u origin HEAD:master
I used this solution in a different subscription and there was no problem. I moved solution to second subscription and I am still facing issue: fatal: could not read Password for https://[email protected]/OrgName/ProjectName/_git/RepoName: terminal prompts disabled[error]Cmd.exe exited with code 128
I have configured the repo using this MS documentation Something is wrong with task 3). tasks 1) and task 2) completed successfully.
I moved solution to second subscriptionare you saying you put these pipeline tasks in a pipeline under a different organization?