Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: More than one package matched with specified pattern Azure Function Release Pipeline in Azure DevOps

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."

enter image description here

Anyone faced this issue? Any help is really appreciated.

like image 432
Sibeesh Venu Avatar asked Jul 09 '19 10:07

Sibeesh Venu


People also ask

Can we link multiple artifacts with one release definition?

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.

What is the difference between Azure pipeline and release?

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.

How do you trigger release pipeline in Azure DevOps?

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".

What is the difference between build and release pipeline in Azure DevOps?

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.


1 Answers

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.

enter image description here

Now you should have an option to select the right zip file.

enter image description here

Now Create the release again and you should see that the release is successful.

enter image description here

Hope it helps.

like image 175
Sibeesh Venu Avatar answered Sep 22 '22 06:09

Sibeesh Venu