hey24sheep / azure-flutter-tasks

Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter
MIT License
89 stars 22 forks source link

Azure Dev Ops build error #128

Open LiTe1991 opened 1 week ago

LiTe1991 commented 1 week ago

Hi,

We are using your task in our build on an Azure DevOps server. Often, we get the error: Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.

I have rechecked it often, and we are in the right folder where I can find a pubspec.yaml. Our current fix is to delete the Flutter folder under the tools directory per agent. After that, the task downloads a fresh version, and with this one, we are able to execute build 2-3 times before needing to repeat the process.

Additionally, we sometimes need to clear the Gradle cache or pub cache before the build works again with the process from above.

Best regards