Having a Visual Studio project to deploy to Azure from Jenkins running on GNU/Linux, I'd like to prepare a package with MSBuild in Windows. Something like MSBuild my.csproj /T:Package
. This will create a zip file.
Now, how can I deploy this file to an Azure Web App instance over ftp? I was hoping just putting the file in wwwroot would unpack it, but that doesn't seem to be the case.
Any good suggestion is very welcome.
Use Powershell Plugin for Jenkins and install Azure Powershell on build servers. Here's a nice guide:
Devops on Windows with Jenkins and Azure Resource Manager
From here, you can easily deploy the zip using the cmdlet below:
You can find more information about this cmdlet here.