I have successfully configured build
pipeline configuration for my Azure Function
in Azure DevOps
. Now I am configuring a release pipeline with Azure App Service Deploy
task and I am always getting an error as "Error: More than one package matched with specified pattern: d:\a\r1\a\**\*.zip. Please restrain the search pattern.
"
Anyone faced this issue? Any help is really appreciated.
A single release pipeline can be linked to multiple artifact sources, of which one is the primary source. In this case, when you create a release, you specify individual versions for each of these sources.
So what is the difference between Azure Pipelines and release pipelines? Well, a release represents continuous delivery in Azure DevOps. A pipeline usually takes code, builds it, tests, and creates an artifact. Release pipelines takes the artifact and deploys it.
Select trigger: Set the trigger that will start the deployment to this stage automatically. Select "Release" to deploy to the stage every time a new release is created. Use the "Stage" option to deploy after deployments to selected stages are successful. To allow only manual deployments, select "Manual".
Release pipelines and build pipelines have separate UIs. The main differences in the pipelines are the support in release pipelines for different types of triggers, and the support for approvals and gates.
Finally I was able to figure out the issue. The reason behind this is, that your solution has many projects in it and each projects will be having its own zip folder in the artifacts, so to fix this we should specify our Azure Function Project in the Package section of our pipeline task.
Click on the Azure App service Deploy task and the go to the Package or Folder section and then click on the three dots.
Now you should have an option to select the right zip file.
Now Create the release again and you should see that the release is successful.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With