When using Git deploy, on windows agent, the plugin fails to copy any files to the azure deploy directory and deploys and empty function.
This also applies to the azure-app-service-plugin, see JENKINS-62946
It's also a bit weird why there are so many plugins (and duplicated code) that do very similar things rather than I plugin
The problem is that in GitDeployCommand.copyAndAddFiles() the list of files uses Windows slashes () but the sourceDir and repo dir uses unix style slashes so FilePathUtils.trimDirectoryPrefix doesn't work correctly as sourceDir is in unix format and file is in Windows format. I don't know anything about how jenkins handles this and I am a C# windows developer so I am at my limit just to get this far. For now I am going to fix the slashes for my case as a workaround.