devops promotion complete
Deploy undeployed work items to a pipeline stage org.
Deploys work items that were merged into the pipeline branch outside of DevOps Center (externally merged) into the target stage org and updates DevOps Center records. Equivalent to the “Complete Promotion” action in the DevOps Center UI when a stage is out of sync.
If no undeployed work items are found for the stage, the command exits successfully with no action taken.
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑deploy‑all | ‑a | Type: Boolean Deploy all metadata in the branch to the stage’s org. If you don’t specify this flag, only changes in the stage’s branch are deployed. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
‑‑target‑stage‑id | ‑t | Type: Value Required ID of the out-of-sync pipeline stage to deploy to. |
‑‑test‑level | ‑l | Type: Value Valid Values: NoTestRun, RunSpecifiedTests, RunLocalTests, RunAllTestsInOrgDeployment Apex testing level. Valid values are:
If you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see the section “Running Tests in a Deployment” in the “Metadata API Developer Guide”. (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) |
‑‑tests | N/A | Type: Value Apex tests to run when –test-level is RunSpecifiedTests. Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces. |
‑‑work‑item‑id | ‑i | Type: Value ID of a specific work item to deploy. Omit to deploy all undeployed work items for the stage. Use this for the first stage of a pipeline where no source stage exists. |
Complete a promotion for an out-of-sync pipeline stage.
Complete a promotion for a specific work item (e.g. first stage of a pipeline).
Complete a promotion with full deploy and a specific test level.