Implement a Continuous Integration for a Salesforce Project

Implement a Continuous Integration process for a Salesforce project is quite difficult due to the cyclic dependencies between project components, for example, an Object can have a weblink to a Custom Page, which has a Class Controller that uses the previuous Object. These dependencies makes difficult to deploy project source code in a simple way, it is true that the Migration Tool can help you to upload code to an Organization, but it is not able to resolve those dependencies problems. EnForce Gradle plugin provides tasks that makes possible to implement a Continuous Integration process using Gradle. This article tries to show an example of a Gradle build script which implements a Continuos Integration process with the next steps:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
buildscript {
   repositories {
       mavenCentral()
       jcenter()
   }
   dependencies {
       classpath 'org.fundacionjala.gradle.plugins.enforce:enforce-gradle-plugin:1.1.2'
   }
}

apply plugin: 'enforce'

enforce {
    srcPath = 'src'
}
comments powered by Disqus