Salesforce offers quick deploy where any pipeline with validate step with unit test are eligible, as part of exaction a unique Opsera now adds support for Quick Deployment feature, which can be used to deploy an already successfully validated and tested component package against the same Salesforce Org. As part of execution a unique Deployment Job ID is generated which can be used and quick deploy can be performed.
Info |
---|
Prerequisite: In order to trigger the Salesforce Quick Deploy Task, you must first trigger a SFDX/ANT pipeline with a unit test case to generate the Salesforce Deploy Key. See Fetching Deploy Key section for instructions. |
Table of Contents | ||||
---|---|---|---|---|
|
Salesforce Quick Deploy Task Configuration
Navigate to “Tasks” Tasks menu and click “New Task” Create New Task.
...
2. In “Create Create New Task” Task form Enter , enter a name and choose “Salesforce Quick Deploy” as Type
...
4. Once created - Click “Run Task” and run
...
5. In Run Panel - Click “Validate Deploy Key” Opsera Task Confirmation, click Validate Deploy Key to view the list of components & Unit test details.
6. Click Run Task to Proceed.
...
6. Successful deployment log can be viewed in Task Activity Logs.
...
Fetching Deploy Key
...
Run Trigger a SFDX/ANT pipeline with Unit test case.
...
2. Deploy ID is generated and to can be fetched from the logsPipeline Logs by clicking on Report row. In Summary tab - Overview, copy the field provided for Request ID:
...
Troubleshooting
...
Failed Quick Deployments
...
Failure Message | Description |
---|---|
|
...
This suggests that the provided Validation deployment Job ID is no more applicable for Quick Deploy because of following reasons :
|
...
|
...
|
...
This suggests that the provided Validation deployment Job ID didn’t include any Unit test level or was having NoTestRun selected as part of the execution and therefore not eligible for Quick Deployment. |
Q. Quick Deploy Task fails with below message
|
...
This suggests that the provided validation deployment Job ID does not meet either of the below criteria's :
|
...
|
...
This suggests that the provided Validation deployment Job ID is not a job ID created as part of Validation but rather as part of Deployment and therefore is not applicable for Quick Deployment. |
Q. Quick Deploy Task fails with below message
|
...
This suggests that the provided Validation deployment Job ID is not a valid Salesforce deployment ID and therefore not applicable for Quick Deployment. |
Q. Quick Deploy Task fails with below message
|
...
This suggests that the provided Validation deployment Job ID is not a valid Salesforce deployment ID and therefore not eligible for Quick Deployment. This can also occur if the Job ID was created as part of Apex Test Run (Unit Testing) step. |