Hi all
I am having trouble with getting a pipeline run without errors. I'm trying to run a job wich uses the Power Platform Build Tools to export, unpack and push the code of a solution to an Azure DevOps repo.
I'm following the example of Suparna Banerjee in Quick Wins I Set up Azure DevOps Pipelines for Power Platform - YouTube
While trying I keep getting the following errors executing the last step (CMD Line Script);
error: pathspec 'main' did not match any file(s) known to git
I think Azure DevOps Power Platform pipeline errors can occur when there is incorrect input data, or the pipeline is running too slowly.
Hi Sundeep
Thanks for helping out! Looks like 'git checkout -b main' worked. I've run the pipeline succesfully now and am seeing the solution files in my repo.
I'll try and do the other pipelines now. I'll let you know how that went.
Try this, not sure it would work or not
In the 4th line of the code do this:
git checkout -b main
It worked for me. Do come back if it works. 🙂
Following post, getting the same error.
For me I just removed the last line for temporary purposes. Because of which it did not create any folder in the repository. Though I was able to transfer solution from one environment to another after removing the last line.
But definitely I will adding the last line to create the repository in the future. But I hope till then I will get the permanent solution for it.
Tagging person who might be able to help.
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional