we have seen the azure-function-plugin to deploy broken/crippled files. We are quite sure they are fine inside our git/jenkins.
After the deployment we found that two files had been stripped in the middle of a line. therefor the function-app broke with some files having bad content.
Jenkins job went fine.
git log -p on the azure scm "shado" repo uncovered a broken commit.