How do i avoid building while source deployment/ pull the latest from bitbuckt ?
You could check the deployment details under "DEPLOYMENT > Deployment options" as follows:

And you could leverage KUDU and check the auto-generated deploy.cmd
file under D:\home\site\deployments\tools\deploy.cmd
.
For your requirement, I would recommend you customize your deploy.cmd
file, and put .deployment
and deploy.cmd
files into your Bitbucket repository. For a simple way, you could just download your current deployment script and modify the scripts under the Deployment section, you need to remove the script for building your solution and just leave the script for kudu sync, and you need to modify the value for the -f
option from "%DEPLOYMENT_TEMP%"
to "%DEPLOYMENT_SOURCE%"
when invoking the %KUDU_SYNC_COMMAND%
. Details you could follow Custom Deployment Script.