The lightside deployment tool was created as a fast way to build changesets and deploy them the multiple environments.
The tool allows any salesforce element to be added to a change set quickly, by filtering on the object it belongs to or by its name via a text search.
Build a Change Set
Create a new Deployment Package
- Open the lightside Deployment tab.
- Click the New button to create a new Lightside changeset.
- Enter a Name and optionally add a Description for the changeset and click Quick Save.
Add Package Components
- Select the Component Type that you need to add.
- Components that exist in objects can be filtered by the parent object.
- Components can then be filtered by using the text filter.
- To add components to the changeset:
- Select one or more companents and click Add or;
- Click Add All to add all visible components
Remove Package Components (if required)
- Filter the components in the changeset using the text Filter.
- Select one or more components.
- Click Remove to remove the selected components from the changeset.
- Click Save or Quick Save to commit the changes.
Add Test Classes to run on Deployment (optional)
You can optionally add Test Classes to run on deployment of the Deployment Package in the destination Org.
If you add Test Classes, then as per the Salesforce 'Run specified tests' option on inbound change sets, only the tests that you specify are run. Code coverage requirements differ from the default coverage requirements when using this. The executed tests must cover each class or trigger in your Deployment Package with a minimum of 75% code coverage. This coverage is computed for each class or trigger individually and is different from the overall coverage percentage.
Leaving this blank will use the Salesforce default inbound deployment option. In a sandbox deployment, no tests are executed. In a production deployment, all local tests are executed if your change sets contain Apex classes or triggers. If your package doesn't contain Apex components, no tests are run.
To add Test Classes:
- Provide the names of test classes as a comma-separated list into the Selected Test Classes textbox.
Save the Deployment Package
- Once a change set is completed click Save to save the changes and return to the Deployment Package record; or
- Click Save and Deploy to go to the Deployment page.
From the Deployment Package
- From the Deployment Package view page, click on the Deploy button; or
- From the Deployment Package edit page, click on the Save and Deploy button.
Create Lightside Deployment Connection
- From the Lightside Deployment Connections page, click New Connection.
- Complete the details of the remote Instance you want to deploy too.
- Click on Save to add the Deployment Connection or Save and Validate to add the Deployment Connection and validate its credentials.
Deploy to a single or multiple Environments
- From the Deploy screen.
- Select one or multiple Deployment Connections.
- Click either Deploy to deploy to the connections or;
- Click Upload and Validate to upload the changeset to the different environments and validate that it will deploy.
- Open a Lightside Changeset. The Deployment Sets related list shows instances the changeset that have been deployed, where it was deployed to and the status of the deployment.
- Alternatively, log into the destination Org and from within Setup, navigate to Deploy, Deployment Status. From here you will be able to check on the status of deployments in progress and the success or failure on completed deployments.