@salesforce/plugin-devops-center 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +592 -55
- package/lib/commands/devops/pipeline/{activate.d.ts → get.d.ts} +3 -3
- package/lib/commands/devops/pipeline/get.js +81 -0
- package/lib/commands/devops/pipeline/get.js.map +1 -0
- package/lib/commands/devops/pipeline/list.d.ts +13 -0
- package/lib/commands/devops/pipeline/list.js +58 -0
- package/lib/commands/devops/pipeline/list.js.map +1 -0
- package/lib/commands/devops/pipeline/project/delete.d.ts +15 -0
- package/lib/commands/devops/pipeline/project/delete.js +71 -0
- package/lib/commands/devops/pipeline/project/delete.js.map +1 -0
- package/lib/commands/devops/pipeline/stage/delete.d.ts +15 -0
- package/lib/commands/devops/pipeline/stage/delete.js +69 -0
- package/lib/commands/devops/pipeline/stage/delete.js.map +1 -0
- package/lib/commands/devops/pipeline/update.d.ts +18 -0
- package/lib/commands/devops/pipeline/update.js +126 -0
- package/lib/commands/devops/pipeline/update.js.map +1 -0
- package/lib/commands/devops/project/update.d.ts +17 -0
- package/lib/commands/devops/project/update.js +86 -0
- package/lib/commands/devops/project/update.js.map +1 -0
- package/lib/commands/devops/promote.d.ts +24 -0
- package/lib/commands/devops/promote.js +148 -0
- package/lib/commands/devops/promote.js.map +1 -0
- package/lib/commands/devops/promotion/complete.d.ts +20 -0
- package/lib/commands/devops/promotion/complete.js +112 -0
- package/lib/commands/devops/promotion/complete.js.map +1 -0
- package/lib/commands/devops/request/status.d.ts +14 -0
- package/lib/commands/devops/request/status.js +71 -0
- package/lib/commands/devops/request/status.js.map +1 -0
- package/lib/commands/devops/{pull-request → review}/create.d.ts +1 -1
- package/lib/commands/devops/{pull-request → review}/create.js +3 -3
- package/lib/commands/devops/review/create.js.map +1 -0
- package/lib/commands/devops/stage/environment/add.js +2 -0
- package/lib/commands/devops/stage/environment/add.js.map +1 -1
- package/lib/commands/devops/stage/environment/delete.d.ts +15 -0
- package/lib/commands/devops/{pipeline/activate.js → stage/environment/delete.js} +18 -30
- package/lib/commands/devops/stage/environment/delete.js.map +1 -0
- package/lib/commands/devops/work-item/combine.d.ts +15 -0
- package/lib/commands/devops/work-item/combine.js +109 -0
- package/lib/commands/devops/work-item/combine.js.map +1 -0
- package/lib/commands/devops/work-item/prepare.d.ts +14 -0
- package/lib/commands/devops/work-item/prepare.js +98 -0
- package/lib/commands/devops/work-item/prepare.js.map +1 -0
- package/lib/common/flags/promote/promoteFlags.d.ts +1 -0
- package/lib/common/flags/promote/promoteFlags.js +5 -0
- package/lib/common/flags/promote/promoteFlags.js.map +1 -1
- package/lib/common/outputService/aorOutputService.js +4 -4
- package/lib/common/outputService/aorOutputService.js.map +1 -1
- package/lib/common/outputService/outputUtils.js +1 -2
- package/lib/common/outputService/outputUtils.js.map +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js +3 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.js +5 -6
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.js +3 -1
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.js +10 -6
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.js +4 -2
- package/lib/common/selectors/environmentSelector.js.map +1 -1
- package/lib/common/selectors/namedCredentialSelector.js +2 -1
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.js +5 -3
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/validateDeploySelector.js +3 -1
- package/lib/common/selectors/validateDeploySelector.js.map +1 -1
- package/lib/common/selectors/workItemSelector.js +4 -1
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/utils/activatePipeline.d.ts +13 -4
- package/lib/utils/activatePipeline.js +7 -6
- package/lib/utils/activatePipeline.js.map +1 -1
- package/lib/utils/attachProject.js +2 -0
- package/lib/utils/attachProject.js.map +1 -1
- package/lib/utils/combineWorkItems.d.ts +20 -0
- package/lib/utils/combineWorkItems.js +42 -0
- package/lib/utils/combineWorkItems.js.map +1 -0
- package/lib/utils/createPullRequest.js +2 -1
- package/lib/utils/createPullRequest.js.map +1 -1
- package/lib/utils/deletePipelineStage.d.ts +12 -0
- package/lib/utils/deletePipelineStage.js +41 -0
- package/lib/utils/deletePipelineStage.js.map +1 -0
- package/lib/utils/deleteStageEnvironment.d.ts +8 -0
- package/lib/utils/deleteStageEnvironment.js +33 -0
- package/lib/utils/deleteStageEnvironment.js.map +1 -0
- package/lib/utils/deployStage.d.ts +29 -0
- package/lib/utils/deployStage.js +68 -0
- package/lib/utils/deployStage.js.map +1 -0
- package/lib/utils/detachProject.d.ts +8 -0
- package/lib/utils/detachProject.js +37 -0
- package/lib/utils/detachProject.js.map +1 -0
- package/lib/utils/getPipeline.d.ts +27 -0
- package/lib/utils/getPipeline.js +66 -0
- package/lib/utils/getPipeline.js.map +1 -0
- package/lib/utils/getRequestStatus.d.ts +10 -0
- package/lib/utils/getRequestStatus.js +32 -0
- package/lib/utils/getRequestStatus.js.map +1 -0
- package/lib/utils/listPipelines.d.ts +11 -0
- package/lib/utils/listPipelines.js +20 -0
- package/lib/utils/listPipelines.js.map +1 -0
- package/lib/utils/pipelineUtils.js +3 -0
- package/lib/utils/pipelineUtils.js.map +1 -1
- package/lib/utils/prepareWorkItem.d.ts +25 -0
- package/lib/utils/prepareWorkItem.js +55 -0
- package/lib/utils/prepareWorkItem.js.map +1 -0
- package/lib/utils/promoteStage.d.ts +21 -0
- package/lib/utils/promoteStage.js +46 -0
- package/lib/utils/promoteStage.js.map +1 -0
- package/lib/utils/soqlUtils.d.ts +23 -0
- package/lib/utils/soqlUtils.js +63 -0
- package/lib/utils/soqlUtils.js.map +1 -0
- package/lib/utils/updateProject.d.ts +17 -0
- package/lib/utils/updateProject.js +41 -0
- package/lib/utils/updateProject.js.map +1 -0
- package/lib/utils/updateWorkItem.js +3 -1
- package/lib/utils/updateWorkItem.js.map +1 -1
- package/lib/utils/workItems.js +2 -0
- package/lib/utils/workItems.js.map +1 -1
- package/messages/devops.pipeline.get.md +17 -0
- package/messages/devops.pipeline.list.md +13 -0
- package/messages/devops.pipeline.project.delete.md +25 -0
- package/messages/devops.pipeline.stage.delete.md +25 -0
- package/messages/devops.pipeline.update.md +47 -0
- package/messages/devops.project.update.md +45 -0
- package/messages/devops.promote.md +61 -0
- package/messages/devops.promotion.complete.md +47 -0
- package/messages/devops.request.status.md +21 -0
- package/messages/devops.stage.environment.delete.md +29 -0
- package/messages/devops.work-item.combine.md +39 -0
- package/messages/devops.work-item.prepare.md +27 -0
- package/npm-shrinkwrap.json +290 -272
- package/oclif.lock +81 -24
- package/oclif.manifest.json +1176 -242
- package/package.json +23 -11
- package/schemas/devops-pipeline-get.json +98 -0
- package/schemas/devops-pipeline-list.json +38 -0
- package/schemas/devops-pipeline-project-delete.json +25 -0
- package/schemas/devops-pipeline-stage-delete.json +25 -0
- package/schemas/{devops-pipeline-activate.json → devops-pipeline-update.json} +5 -2
- package/schemas/devops-project-update.json +31 -0
- package/schemas/devops-promote.json +28 -0
- package/schemas/devops-promotion-complete.json +34 -0
- package/schemas/devops-request-status.json +31 -0
- package/schemas/devops-stage-environment-delete.json +25 -0
- package/schemas/devops-work__item-combine.json +25 -0
- package/schemas/devops-work__item-prepare.json +25 -0
- package/lib/commands/devops/pipeline/activate.js.map +0 -1
- package/lib/commands/devops/pull-request/create.js.map +0 -1
- package/messages/devops.pipeline.activate.md +0 -29
- /package/messages/{devops.pull-request.create.md → devops.review.create.md} +0 -0
- /package/schemas/{devops-pull__request-create.json → devops-review-create.json} +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Update a DevOps Center project.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Update the name, description, or active status of a DevOps Center project. At least one of --name, --description, or --is-active must be provided.
|
|
8
|
+
|
|
9
|
+
# flags.project-id.summary
|
|
10
|
+
|
|
11
|
+
ID of the DevOps Center project to update.
|
|
12
|
+
|
|
13
|
+
# flags.name.summary
|
|
14
|
+
|
|
15
|
+
New name for the project.
|
|
16
|
+
|
|
17
|
+
# flags.description.summary
|
|
18
|
+
|
|
19
|
+
New description for the project.
|
|
20
|
+
|
|
21
|
+
# flags.is-active.summary
|
|
22
|
+
|
|
23
|
+
Set the project active status. Use --is-active to activate or --no-is-active to deactivate.
|
|
24
|
+
|
|
25
|
+
# examples
|
|
26
|
+
|
|
27
|
+
- Rename a project:
|
|
28
|
+
|
|
29
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --name "MyApp Release v2"
|
|
30
|
+
|
|
31
|
+
- Update the description of a project:
|
|
32
|
+
|
|
33
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --description "Updated release description"
|
|
34
|
+
|
|
35
|
+
- Deactivate a project:
|
|
36
|
+
|
|
37
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --no-is-active
|
|
38
|
+
|
|
39
|
+
- Update all fields at once:
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --name "Archived App" --description "Archived" --no-is-active
|
|
42
|
+
|
|
43
|
+
# error.NoFieldsProvided
|
|
44
|
+
|
|
45
|
+
Provide at least one of --name, --description, or --is-active/--no-is-active.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Promote work items or a pipeline stage to a target pipeline stage.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Promote specific work items or all approved work items from a source stage to the target pipeline stage.
|
|
8
|
+
|
|
9
|
+
Pass --work-item-id to promote one or more specific work items to the target stage.
|
|
10
|
+
|
|
11
|
+
Pass --stage-id to promote all approved work items from that source stage to the target stage.
|
|
12
|
+
|
|
13
|
+
Exactly one of --work-item-id or --stage-id must be provided.
|
|
14
|
+
|
|
15
|
+
Use --deploy-all to deploy all metadata in the branch rather than only changes not yet in the target stage.
|
|
16
|
+
|
|
17
|
+
# flags.target-stage-id.summary
|
|
18
|
+
|
|
19
|
+
ID of the pipeline stage to promote to.
|
|
20
|
+
|
|
21
|
+
# flags.work-item-id.summary
|
|
22
|
+
|
|
23
|
+
ID of the work item to promote. Mutually exclusive with --stage-id.
|
|
24
|
+
|
|
25
|
+
# flags.work-item-id.description
|
|
26
|
+
|
|
27
|
+
Specify this flag multiple times to promote multiple work items in a single operation.
|
|
28
|
+
|
|
29
|
+
# flags.stage-id.summary
|
|
30
|
+
|
|
31
|
+
ID of the source pipeline stage whose approved work items will be promoted. Mutually exclusive with --work-item-id.
|
|
32
|
+
|
|
33
|
+
# examples
|
|
34
|
+
|
|
35
|
+
- Promote all approved work items from a source stage to a target stage:
|
|
36
|
+
|
|
37
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 1QVxx0000000001 --target-stage-id 1QVxx0000000002
|
|
38
|
+
|
|
39
|
+
- Promote a specific work item to a stage:
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 1fkxx0000000001 --target-stage-id 1QVxx0000000001
|
|
42
|
+
|
|
43
|
+
- Promote multiple work items:
|
|
44
|
+
|
|
45
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 1fkxx0000000001 --work-item-id 1fkxx0000000002 --target-stage-id 1QVxx0000000001
|
|
46
|
+
|
|
47
|
+
- Promote a stage with full deploy:
|
|
48
|
+
|
|
49
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 1QVxx0000000001 --target-stage-id 1QVxx0000000002 --deploy-all
|
|
50
|
+
|
|
51
|
+
# error.NoModeFlag
|
|
52
|
+
|
|
53
|
+
Provide either --work-item-id to promote specific work items or --stage-id to promote all approved work items from a stage.
|
|
54
|
+
|
|
55
|
+
# error.NoWorkItems
|
|
56
|
+
|
|
57
|
+
No work items found to promote from the source stage. Make sure there are approved work items before promoting.
|
|
58
|
+
|
|
59
|
+
# error.PromoteFailed
|
|
60
|
+
|
|
61
|
+
Failed to promote: %s
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Deploy undeployed work items to a pipeline stage org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
If no undeployed work items are found for the stage, the command exits successfully with no action taken.
|
|
10
|
+
|
|
11
|
+
# flags.target-stage-id.summary
|
|
12
|
+
|
|
13
|
+
ID of the out-of-sync pipeline stage to deploy to.
|
|
14
|
+
|
|
15
|
+
# flags.work-item-id.summary
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
# examples
|
|
20
|
+
|
|
21
|
+
- Complete a promotion for an out-of-sync pipeline stage.
|
|
22
|
+
|
|
23
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001
|
|
24
|
+
|
|
25
|
+
- Complete a promotion for a specific work item (e.g. first stage of a pipeline).
|
|
26
|
+
|
|
27
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001
|
|
28
|
+
|
|
29
|
+
- Complete a promotion with full deploy and a specific test level.
|
|
30
|
+
|
|
31
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --deploy-all --test-level RunLocalTests
|
|
32
|
+
|
|
33
|
+
# info.NothingToDeploy
|
|
34
|
+
|
|
35
|
+
No undeployed work items found for this stage.
|
|
36
|
+
|
|
37
|
+
# error.StageNotFound
|
|
38
|
+
|
|
39
|
+
Stage '%s' not found or has no associated pipeline.
|
|
40
|
+
|
|
41
|
+
# error.ValidationFailed
|
|
42
|
+
|
|
43
|
+
Pre-flight validation failed. Error type: %s. Details: %s
|
|
44
|
+
|
|
45
|
+
# error.DeployFailed
|
|
46
|
+
|
|
47
|
+
Deploy request failed: %s
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Get the status of a request.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Returns the current status of a request identified by its request token.
|
|
8
|
+
|
|
9
|
+
# flags.request-token.summary
|
|
10
|
+
|
|
11
|
+
Request token from the promote response.
|
|
12
|
+
|
|
13
|
+
# examples
|
|
14
|
+
|
|
15
|
+
- Get the status of a request:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --request-token a0B000000000001
|
|
18
|
+
|
|
19
|
+
# error.RequestNotFound
|
|
20
|
+
|
|
21
|
+
Request %s not found. Check the request token and try again.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Delete an environment from a DevOps Center pipeline stage.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Removes the specified environment from the pipeline stage. The environment must belong to an inactive pipeline.
|
|
8
|
+
|
|
9
|
+
# flags.pipeline-id.summary
|
|
10
|
+
|
|
11
|
+
ID of the pipeline. Used to verify the pipeline is inactive before deleting.
|
|
12
|
+
|
|
13
|
+
# flags.environment-id.summary
|
|
14
|
+
|
|
15
|
+
ID of the environment to delete.
|
|
16
|
+
|
|
17
|
+
# examples
|
|
18
|
+
|
|
19
|
+
- Delete an environment:
|
|
20
|
+
|
|
21
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --environment-id 0Xe000000000001
|
|
22
|
+
|
|
23
|
+
# error.PipelineAlreadyActive
|
|
24
|
+
|
|
25
|
+
Pipeline %s is already active. Environments can only be removed from inactive pipelines.
|
|
26
|
+
|
|
27
|
+
# error.EnvironmentNotFound
|
|
28
|
+
|
|
29
|
+
Environment %s not found. Check the environment ID and try again.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Prepare work items to be combined for custom promotion.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command when work items in the same stage share metadata or have dependencies. DevOps Center combines the selected work items so they can be promoted together during custom promotion.
|
|
8
|
+
|
|
9
|
+
After running this command, use "sf devops work-item promote" with the parent work item ID to complete the promotion. The combined work items are promoted as a single unit.
|
|
10
|
+
|
|
11
|
+
# flags.parent-work-item-id.summary
|
|
12
|
+
|
|
13
|
+
ID of the parent work item.
|
|
14
|
+
|
|
15
|
+
# flags.parent-work-item-id.description
|
|
16
|
+
|
|
17
|
+
The parent work item is the primary work item that continues through the pipeline. Changes from all child work items are merged into the parent's branch during promotion.
|
|
18
|
+
|
|
19
|
+
# flags.child-work-item-id.summary
|
|
20
|
+
|
|
21
|
+
ID of a work item to combine.
|
|
22
|
+
|
|
23
|
+
# flags.child-work-item-id.description
|
|
24
|
+
|
|
25
|
+
Specify this flag multiple times to combine multiple work items with the parent.
|
|
26
|
+
|
|
27
|
+
# flags.target-stage-id.summary
|
|
28
|
+
|
|
29
|
+
ID of the pipeline stage to promote the combined work item to.
|
|
30
|
+
|
|
31
|
+
# examples
|
|
32
|
+
|
|
33
|
+
- Prepare three work items to be combined to prevent conflicts during promotion:
|
|
34
|
+
|
|
35
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --parent-work-item-id 0Wx000000000001 --child-work-item-id 0Wx000000000002 --child-work-item-id 0Wx000000000003 --target-stage-id 05S000000000002
|
|
36
|
+
|
|
37
|
+
# error.NoPipeline
|
|
38
|
+
|
|
39
|
+
No pipeline found for this project. Make sure the project has an associated pipeline.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Prepare a work item for one-off promotion between pipeline stages.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Prepares a work item for one-off promotion by creating the necessary branches and pull requests in the source control repository. Run this command before running "sf devops work-item promote" for a one-off promotion.
|
|
8
|
+
|
|
9
|
+
Use "sf devops work-item list" to find the work item ID and target stage ID for a project.
|
|
10
|
+
|
|
11
|
+
# flags.work-item-id.summary
|
|
12
|
+
|
|
13
|
+
ID of the work item to prepare for one-off promotion.
|
|
14
|
+
|
|
15
|
+
# flags.target-stage-id.summary
|
|
16
|
+
|
|
17
|
+
ID of the pipeline stage to promote the work item to.
|
|
18
|
+
|
|
19
|
+
# examples
|
|
20
|
+
|
|
21
|
+
- Prepare a work item for one-off promotion to the UAT stage:
|
|
22
|
+
|
|
23
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 0Wx000000000001 --target-stage-id 05S000000000002
|
|
24
|
+
|
|
25
|
+
- Prepare a work item using a DevOps Center org username:
|
|
26
|
+
|
|
27
|
+
<%= config.bin %> <%= command.id %> --target-org devops-center@example.com --work-item-id 0Wx000000000001 --target-stage-id 05S000000000002
|