I am hunting for the best(Free/low cost) option through which i can manage my organisation's code in some repository and also make it configure so that i can deploy changes to other org as well. I have read about bitbucket, jenkins and source tree. But confused on what to use when.

It would be better if that option can be used along with eclipse IDE


There are a few good resources available on this subject if you Google "salesforce continuous integration" - see eg. this post by Jeff Douglas.

The simple version is:

  1. Set up a git repository on Bitbucket
  2. Use the Force.com IDE, MavensMate or the Force.com Migration Tool to pull metadata files from your Salesforce instance
  3. Use SourceTree to commit your metadata files to your git repository

You now have your metadata managed with a source control system.

To deploy your code to another org, you need to pull it from the repository, and push it to the target org. You can pull using git commands, and push using the Force.com Migration Tool.

Continuous Integration involves building your code frequently, so that you know as soon as possible if your changes break your existing unit tests. However, it's not much fun to manually pull and push the code every time you make a commit.

Hence, Jenkins is a useful automation tool that can be used to pull your code from your repository and push it to the target org with a single click. You can also set it up to remove the need for manual invocation, eg by monitoring the repository for new commits and deploying them to the target org automatically.


if you are using eclipse IDE to develop your custom code and test/deploy to your target orgs, you may also try SVN as your source repo. Eclipse has plugins for SVN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.