There are multiple CS project packages in a folder of my artifacts that needs to be deployed into the web app with multiple Virtual Directories. When I give "$(System.DefaultWorkingDirectory)/*/*/APIs/*.zip" as my Package/Folder pattern to deploy it says"

Error: More than one package matched with specified pattern: C:\agent_work\r8\a**\APIs*.zip. Please restrain the search pattern.

1 Answers

rAJ On

You can try unzip your package first in current directory :

Unzip "$(System.DefaultWorkingDirectory)\$(Package.PackageName)" "$(System.DefaultWorkingDirectory)\Build\Package"

then give the path to your folder like this instead of '$(System.DefaultWorkingDirectory)///APIs/*.zip' :


Virtual Directory creation is separate part. You can create virtual directory before deploy web app content.