[SalesForce] Deploy changes from bitbucket using ANT Migration Tool

I'm starting to implement Continuous Integration and I'm using Bitbucket, Jenkins and the ANT Migration Tool provided by Salesforce.

I want to deploy from a Dev Sandbox environment to a Dev-Integration env, but I want to deploy only the changes that I did and not all code that is into src folder (all salesforce metadata). There's a way to only deploy that changes ( obviously keeping in mind test classes and dependences)? or what would be the best approach.

Thanks,

Best Answer

We are using a very similar setup internally. What we have found works is that

1) All devs work in their own separate sandboxes.

2) All development is done in feature branches.

3) When work is ready for QA/Integration testing feature branches are merged into master.

4) Jenkins build runs whenever there is a commit to master and performs a deploy to the QA/Integration environment.

You may want to check out the Atlassian Guide for Setting up CI. They use Bamboo but most of the issues you will run into with maintaining your package.xml and keeping config changes in sync will be very similar.

Related Topic