+ Start a Discussion
Yamini Bathula 15Yamini Bathula 15 

ANT Deployment in Salesforce Using Jenkins - Deploy only commited Files

Hi, 
We are using Jenkins CI tool for Deployment to Salesforce. Jenkins uses ANT Deployment. I would like to understand is it necessary to deploy  all the components (BitBucket repo) in the master branch or is it enought to deploy only the changed components. Also would like to understand how to achieve deploying only changed components.

Thanks for your help in advance
VinayVinay (Salesforce Developers) 
Hi Yamini,

You can deploy only changed components,  however, there would list of all components existing in your bitbucket repository and this build will run and deploy the components to next environments.

Eg. If you have made any manual changes in next environment they would be overridden with bitbucket metadata code whenever you run ant deployment and deploy using jenkins.

Review below links which can help you.

https://www.jitendrazaa.com/blog/salesforce/continuous-integration-in-salesforce-using-jenkins-and-git-video-tutorial/
http://amitsalesforce.blogspot.com/2019/03/continuous-integration-in-salesforce-using-jenkins-github.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar