Category: ant

Implementing Continuous Integration Using Jenkins and Git for Salesforce Development

Continuous Integration (CI) is a development practice the allows developers to check-in their changes into a shared repository unlimited number of times. Each check-in is then verified by an automated build system, thus eliminating the changes of breaking some other part of the application while fixing one part.By implementing Continuous Integration, you can detect errors quickly and locate them more easily. I always recommend to implement Continuous Integration in any kind of software projects. I personally implemented CI multiple times for Java and C++ projects in my career. Now last week, I implemented the same for Salesforce development. In today’s post, I will explain how to do that.Below are the prerequisite softwares -ANT – You can download the software from here.Salesforce Migration Tool – Please check the detail steps @ http://www.salesforce.com/us/developer/docs/daas/Content/forcemigrationtool_install.htmGit – You can download the software from here.Eclipse.Before we go further, I recommend you to go through the below posts to understand the concept.Version Controlling in Salesforce with Git + Eclipse.Salesforce Deployment Guide using ANT Migration Tool.Best Practices – Continuous Integration Techniques.Below picture will give you a high level overview about what I am going to achieve by implementing CI.Step 1 – Install Jenkins on your local machine by downloading the Java Web Archive (.war) from here. Once downloaded, execute the below command from the directory where you have saved -java -jar jenkins.warAfter that open your browser and go to http://localhost:8080/. You will...

Read More

Salesforce Deployment Guide using Ant Migration Tool

In Salesforce, we have three different ways by which we can perform the deployment activities. They are -Change Sets – This is available from Salesforce.com site.By using “Deploy to force.com server” option in Eclipse.Using Java based tool – ANT.In this post, I will provide a complete deployment guide using Ant Migration Tool.Before I start, let me tell you the prerequisite for doing deployment using Ant Migration Tool.Requirement – Java: You should have java installed in your machine. To verify whether you have java installed, do the below steps -Open a command promptAt the prompt, type java -version. You should see something like below which indicates your installed java versionRequirement – Ant: You should have ant installed in your machine. To install ant, do the below steps -Download ant from http://ant.apache.org/bindownload.cgiSet environment variable “ANT_HOME” which should be the path of your installation. Add the bin folder to your path as well like %ANT_HOME%/binVerify by issuing the command ant -version from command prompt. You should see something like below which indicates your installed ant version.Once you have configured Java and Ant successfully into your machine, it’s time to download the Force.com Migration Tool. You can download the same by logging into your Org and then Setup | Develop | Tools and then click Force.com Migration Tool. Once downloaded, extract the zip file and copy ant-salesforce.jar file to the lib directory of your ANT...

Read More
Loading

Earlier Posts

  • 2024 (32)
  • 2023 (47)
  • 2022 (25)
  • 2021 (35)
  • 2020 (41)
  • 2019 (13)
  • 2018 (16)
  • 2017 (14)
  • 2016 (18)
  • 2015 (74)
  • 2014 (20)