-
Notifications
You must be signed in to change notification settings - Fork 15
Home
This Jenkins plugin automatically deploys metadata changes to a Salesforce organization based on differences
between two commits in Git. Instead of deploying a repository's contents every time a change is made, the plugin can
determine what metadata needs to be deployed and deleted and coordinate only those changes. This has the benefit of
drastically reducing deployment times and uncoupling the reliance on the package manifest file (package.xml
).
The plugin supports TestLevels in deployments. The options are:
- None: No tests will be run during this deployment.
- Relevant: the RunSpecifiedTests level. Jenkins will use the information provided in the Test Regex field under the System Configuration section to determine which set of tests need to be run for this particular deployment. A warning will be generated in Jenkins log if no relevant test is found for a particular ApexClass.
- Local: All unit tests are run, excluding those found in managed packages.
- All: All unit tests are run, including those found in managed packages.
The plugin also has support for creating a "rollback" zip that contains all the necessary metadata required for
removing the changes made in the build from the Salesforce environment. This rollback package is a zip file located in
the job's workspace directory for that build, under /sma
.
This plugin supports v34.0 of the Salesforce Metadata API. As such, there is not currently any support for Lightning Components deployment. Any aura definition bundles will be ignored by this plugin.