@salesforce/plugin-devops-center 1.0.0-beta.1 → 1.0.0-beta.2
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 +3 -1
- package/lib/commands/project/deploy/pipeline/quick.d.ts +23 -0
- package/lib/commands/project/deploy/pipeline/quick.js +45 -0
- package/lib/commands/project/deploy/pipeline/quick.js.map +1 -0
- package/lib/commands/project/deploy/pipeline/resume.d.ts +3 -2
- package/lib/commands/project/deploy/pipeline/resume.js +1 -0
- package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/start.d.ts +4 -2
- package/lib/commands/project/deploy/pipeline/start.js +1 -0
- package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/validate.d.ts +19 -0
- package/lib/commands/project/deploy/pipeline/validate.js +37 -0
- package/lib/commands/project/deploy/pipeline/validate.js.map +1 -0
- package/lib/common/base/abstractAsyncOperation.d.ts +42 -0
- package/lib/common/base/abstractAsyncOperation.js +94 -0
- package/lib/common/base/abstractAsyncOperation.js.map +1 -0
- package/lib/common/base/abstractPromote.d.ts +8 -16
- package/lib/common/base/abstractPromote.js +19 -69
- package/lib/common/base/abstractPromote.js.map +1 -1
- package/lib/common/base/abstractQuick.d.ts +59 -0
- package/lib/common/base/abstractQuick.js +111 -0
- package/lib/common/base/abstractQuick.js.map +1 -0
- package/lib/common/base/abstractResume.d.ts +7 -12
- package/lib/common/base/abstractResume.js +9 -35
- package/lib/common/base/abstractResume.js.map +1 -1
- package/lib/common/constants.d.ts +2 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/constants.js.map +1 -1
- package/lib/common/index.d.ts +1 -1
- package/lib/common/index.js.map +1 -1
- package/lib/common/outputColumns.d.ts +1 -0
- package/lib/common/outputColumns.js +1 -0
- package/lib/common/outputColumns.js.map +1 -1
- package/lib/common/outputService/aorOutputService.js +12 -6
- package/lib/common/outputService/aorOutputService.js.map +1 -1
- package/lib/common/outputService/deployCommandOutputService.d.ts +1 -1
- package/lib/common/outputService/deployCommandOutputService.js +2 -2
- package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
- package/lib/common/outputService/deploySummaryBuilder.d.ts +12 -0
- package/lib/common/outputService/deploySummaryBuilder.js +59 -5
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
- package/lib/common/outputService/outputServiceFactory.d.ts +11 -5
- package/lib/common/outputService/outputServiceFactory.js +8 -2
- package/lib/common/outputService/outputServiceFactory.js.map +1 -1
- package/lib/common/outputService/promoteOutputService.d.ts +0 -6
- package/lib/common/outputService/promoteOutputService.js +0 -11
- package/lib/common/outputService/promoteOutputService.js.map +1 -1
- package/lib/common/outputService/resumeCommandOutputService.d.ts +7 -4
- package/lib/common/outputService/resumeCommandOutputService.js +8 -4
- package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
- package/lib/common/outputService/resumeOutputService.d.ts +7 -0
- package/lib/common/outputService/resumeOutputService.js +14 -0
- package/lib/common/outputService/resumeOutputService.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.d.ts +1 -0
- package/lib/common/selectors/deployComponentsSelector.js +9 -1
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +19 -1
- package/lib/common/selectors/deploymentResultsSelector.js +29 -1
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.d.ts +5 -0
- package/lib/common/selectors/pipelineStageSelector.js +13 -1
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/validateDeploySelector.d.ts +6 -0
- package/lib/common/selectors/validateDeploySelector.js +22 -0
- package/lib/common/selectors/validateDeploySelector.js.map +1 -0
- package/lib/common/types.d.ts +10 -5
- package/lib/common/types.js +0 -6
- package/lib/common/types.js.map +1 -1
- package/lib/common/utils.d.ts +7 -1
- package/lib/common/utils.js +16 -3
- package/lib/common/utils.js.map +1 -1
- package/lib/streamer/processors/asyncOpStream.js +2 -1
- package/lib/streamer/processors/asyncOpStream.js.map +1 -1
- package/messages/commonFlags.md +2 -2
- package/messages/config.md +1 -1
- package/messages/deploy.output.md +18 -2
- package/messages/project.deploy.pipeline.quick.md +45 -0
- package/messages/project.deploy.pipeline.report.md +3 -3
- package/messages/project.deploy.pipeline.resume.md +1 -1
- package/messages/project.deploy.pipeline.start.md +5 -1
- package/messages/project.deploy.pipeline.validate.md +17 -0
- package/messages/promoteFlags.md +3 -3
- package/oclif.manifest.json +238 -9
- package/package.json +221 -115
- package/schemas/project-deploy-pipeline-quick.json +25 -0
- package/schemas/project-deploy-pipeline-resume.json +3 -3
- package/schemas/project-deploy-pipeline-start.json +3 -3
- package/schemas/project-deploy-pipeline-validate.json +25 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Quickly deploy a validated deployment to an org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Before you run this command, first create a validated deployment with the "sf project deploy pipeline validate" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.
|
|
8
|
+
|
|
9
|
+
Executing this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.
|
|
10
|
+
|
|
11
|
+
This command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.
|
|
12
|
+
|
|
13
|
+
# examples
|
|
14
|
+
|
|
15
|
+
- Run a quick deploy using your default Devops Center org and a job ID:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2
|
|
18
|
+
|
|
19
|
+
- Asynchronously run a quick deploy of the most recently validated deployment using an org with alias "my-prod-org":
|
|
20
|
+
|
|
21
|
+
<%= config.bin %> <%= command.id %> --async --use-most-recent --devops-center-username my-prod-org
|
|
22
|
+
|
|
23
|
+
# flags.job-id.summary
|
|
24
|
+
|
|
25
|
+
Job ID of the validated deployment to quick deploy.
|
|
26
|
+
|
|
27
|
+
# flags.job-id.description
|
|
28
|
+
|
|
29
|
+
The job ID is valid for 10 days from when you started the validation.
|
|
30
|
+
|
|
31
|
+
# flags.use-most-recent.summary
|
|
32
|
+
|
|
33
|
+
Use the job ID of the most recently validated deployment.
|
|
34
|
+
|
|
35
|
+
# flags.use-most-recent.description
|
|
36
|
+
|
|
37
|
+
For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find the job ID.
|
|
38
|
+
|
|
39
|
+
# error.JobIsNotValidationDeployment
|
|
40
|
+
|
|
41
|
+
The job ID is invalid for the quick deployment. Verify that a deployment validation was run or hasn't expired, and that you specified the correct job ID. Then try again.
|
|
42
|
+
|
|
43
|
+
# error.JobIsNotValidated
|
|
44
|
+
|
|
45
|
+
We can't perform the quick deployment for the specified job ID because the validate-only deployment failed or is still running. If the validate-only deployment failed, fix the issue and re-run it. If the validate-only deployment was successful, try this command again later.
|
|
@@ -4,7 +4,7 @@ Check the status of a pipeline deploy operation.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Run this command by either
|
|
7
|
+
Run this command by either indicating a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.
|
|
8
8
|
|
|
9
9
|
# examples
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ Run this command by either passing it a job ID or specifying the —use-most-rec
|
|
|
18
18
|
|
|
19
19
|
# flags.job-id.summary
|
|
20
20
|
|
|
21
|
-
Job ID of the pipeline deployment
|
|
21
|
+
Job ID of the pipeline deployment to check the status of.
|
|
22
22
|
|
|
23
23
|
# flags.job-id.description
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Use the job ID of the most recent deploy operation.
|
|
|
30
30
|
|
|
31
31
|
# flags.use-most-recent.description
|
|
32
32
|
|
|
33
|
-
For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find
|
|
33
|
+
For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find the job ID.
|
|
34
34
|
|
|
35
35
|
# report.key.created-by-name
|
|
36
36
|
|
|
@@ -6,7 +6,7 @@ Resume watching a pipeline deploy operation.
|
|
|
6
6
|
|
|
7
7
|
Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.
|
|
8
8
|
|
|
9
|
-
Run this command by either
|
|
9
|
+
Run this command by either indicating a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.
|
|
10
10
|
|
|
11
11
|
# examples
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ Deploy changes from a branch to the pipeline stage’s org.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Before you run this command, changes in the branch must be merged in the source control repository.
|
|
7
|
+
Before you run this command, changes in the pipeline stage's branch must be merged in the source control repository.
|
|
8
8
|
|
|
9
9
|
# examples
|
|
10
10
|
|
|
@@ -35,3 +35,7 @@ Path
|
|
|
35
35
|
# deployComponent.table.title
|
|
36
36
|
|
|
37
37
|
Deployed Source
|
|
38
|
+
|
|
39
|
+
# deployComponent.table.validateDeployTitle
|
|
40
|
+
|
|
41
|
+
Validate-only Deployed Source
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Perform a validate-only deployment from a branch to the pipeline stage’s org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
A validation runs Apex tests to verify whether a deployment will succeed without actually deploying the metadata to your environment, so you can then quickly deploy the changes later without re-running the tests.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Perform a validate-only deployment from the Staging branch to the Staging environment (sandbox):
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox
|
|
14
|
+
|
|
15
|
+
- Perform a validate-only deployment of all changes from the main branch to the release environment:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name main --devops-center-username MyReleaseOrg --deploy-all
|
package/messages/promoteFlags.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# promote.branch-name.summary
|
|
2
2
|
|
|
3
|
-
Name of the branch in the source control repository
|
|
3
|
+
Name of the branch in the source control repository that corresponds to the pipeline stage that you want to deploy the changes to.
|
|
4
4
|
|
|
5
5
|
# promote.deploy-all.summary
|
|
6
6
|
|
|
7
|
-
Deploy all metadata in branch.
|
|
7
|
+
Deploy all metadata in the branch to the stage's org.
|
|
8
8
|
|
|
9
9
|
# promote.deploy-all.description
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ Apex tests to run when --test-level is RunSpecifiedTests.
|
|
|
24
24
|
|
|
25
25
|
# promote.tests.description
|
|
26
26
|
|
|
27
|
-
Separate multiple test names with commas
|
|
27
|
+
Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces.
|
|
28
28
|
|
|
29
29
|
# promote.test-level.summary
|
|
30
30
|
|
package/oclif.manifest.json
CHANGED
|
@@ -1,10 +1,98 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-beta.
|
|
2
|
+
"version": "1.0.0-beta.2",
|
|
3
3
|
"commands": {
|
|
4
|
+
"project:deploy:pipeline:quick": {
|
|
5
|
+
"id": "project:deploy:pipeline:quick",
|
|
6
|
+
"summary": "Quickly deploy a validated deployment to an org.",
|
|
7
|
+
"description": "Before you run this command, first create a validated deployment with the \"sf project deploy pipeline validate\" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.\n\nExecuting this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nThis command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"pluginName": "@salesforce/plugin-devops-center",
|
|
10
|
+
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
11
|
+
"pluginType": "core",
|
|
12
|
+
"state": "beta",
|
|
13
|
+
"aliases": [],
|
|
14
|
+
"examples": [
|
|
15
|
+
"Run a quick deploy using your default Devops Center org and a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
|
|
16
|
+
"Asynchronously run a quick deploy of the most recently validated deployment using an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --devops-center-username my-prod-org"
|
|
17
|
+
],
|
|
18
|
+
"flags": {
|
|
19
|
+
"json": {
|
|
20
|
+
"name": "json",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Format output as json.",
|
|
23
|
+
"helpGroup": "GLOBAL",
|
|
24
|
+
"allowNo": false
|
|
25
|
+
},
|
|
26
|
+
"async": {
|
|
27
|
+
"name": "async",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"summary": "Run the command asynchronously.",
|
|
30
|
+
"description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf project deploy pipeline resume\". To check the status of the deployment, run \"sf project deploy pipeline report\".",
|
|
31
|
+
"allowNo": false
|
|
32
|
+
},
|
|
33
|
+
"concise": {
|
|
34
|
+
"name": "concise",
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"summary": "Show concise output of the command result.",
|
|
37
|
+
"allowNo": false,
|
|
38
|
+
"exclusive": [
|
|
39
|
+
"verbose"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"verbose": {
|
|
43
|
+
"name": "verbose",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"summary": "Show verbose output of the command result.",
|
|
46
|
+
"allowNo": false
|
|
47
|
+
},
|
|
48
|
+
"wait": {
|
|
49
|
+
"name": "wait",
|
|
50
|
+
"type": "option",
|
|
51
|
+
"char": "w",
|
|
52
|
+
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
53
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
|
|
54
|
+
"helpValue": "<minutes>",
|
|
55
|
+
"multiple": false,
|
|
56
|
+
"exclusive": [
|
|
57
|
+
"async"
|
|
58
|
+
],
|
|
59
|
+
"default": {
|
|
60
|
+
"quantity": 33,
|
|
61
|
+
"unit": 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"devops-center-username": {
|
|
65
|
+
"name": "devops-center-username",
|
|
66
|
+
"type": "option",
|
|
67
|
+
"char": "c",
|
|
68
|
+
"summary": "Username or alias of the DevOps Center org.",
|
|
69
|
+
"required": true,
|
|
70
|
+
"multiple": false
|
|
71
|
+
},
|
|
72
|
+
"job-id": {
|
|
73
|
+
"name": "job-id",
|
|
74
|
+
"type": "option",
|
|
75
|
+
"char": "i",
|
|
76
|
+
"summary": "Job ID of the validated deployment to quick deploy.",
|
|
77
|
+
"description": "The job ID is valid for 10 days from when you started the validation.",
|
|
78
|
+
"multiple": false
|
|
79
|
+
},
|
|
80
|
+
"use-most-recent": {
|
|
81
|
+
"name": "use-most-recent",
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"char": "r",
|
|
84
|
+
"summary": "Use the job ID of the most recently validated deployment.",
|
|
85
|
+
"description": "For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find the job ID.",
|
|
86
|
+
"allowNo": false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"args": {},
|
|
90
|
+
"hasDynamicHelp": true
|
|
91
|
+
},
|
|
4
92
|
"project:deploy:pipeline:report": {
|
|
5
93
|
"id": "project:deploy:pipeline:report",
|
|
6
94
|
"summary": "Check the status of a pipeline deploy operation.",
|
|
7
|
-
"description": "Run this command by either
|
|
95
|
+
"description": "Run this command by either indicating a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.",
|
|
8
96
|
"strict": true,
|
|
9
97
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
10
98
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
@@ -35,7 +123,7 @@
|
|
|
35
123
|
"name": "job-id",
|
|
36
124
|
"type": "option",
|
|
37
125
|
"char": "i",
|
|
38
|
-
"summary": "Job ID of the pipeline deployment
|
|
126
|
+
"summary": "Job ID of the pipeline deployment to check the status of.",
|
|
39
127
|
"description": "The job ID is valid for 10 days from when you started the deploy operation.",
|
|
40
128
|
"multiple": false
|
|
41
129
|
},
|
|
@@ -44,7 +132,7 @@
|
|
|
44
132
|
"type": "boolean",
|
|
45
133
|
"char": "r",
|
|
46
134
|
"summary": "Use the job ID of the most recent deploy operation.",
|
|
47
|
-
"description": "For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find
|
|
135
|
+
"description": "For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find the job ID.",
|
|
48
136
|
"allowNo": false
|
|
49
137
|
}
|
|
50
138
|
},
|
|
@@ -54,7 +142,7 @@
|
|
|
54
142
|
"project:deploy:pipeline:resume": {
|
|
55
143
|
"id": "project:deploy:pipeline:resume",
|
|
56
144
|
"summary": "Resume watching a pipeline deploy operation.",
|
|
57
|
-
"description": "Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.\n\nRun this command by either
|
|
145
|
+
"description": "Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.\n\nRun this command by either indicating a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
|
|
58
146
|
"strict": true,
|
|
59
147
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
60
148
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
@@ -97,6 +185,21 @@
|
|
|
97
185
|
"description": "For performance reasons, this flag uses job IDs for operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find a job ID.",
|
|
98
186
|
"allowNo": false
|
|
99
187
|
},
|
|
188
|
+
"concise": {
|
|
189
|
+
"name": "concise",
|
|
190
|
+
"type": "boolean",
|
|
191
|
+
"summary": "Show concise output of the command result.",
|
|
192
|
+
"allowNo": false,
|
|
193
|
+
"exclusive": [
|
|
194
|
+
"verbose"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"verbose": {
|
|
198
|
+
"name": "verbose",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"summary": "Show verbose output of the command result.",
|
|
201
|
+
"allowNo": false
|
|
202
|
+
},
|
|
100
203
|
"wait": {
|
|
101
204
|
"name": "wait",
|
|
102
205
|
"type": "option",
|
|
@@ -120,7 +223,7 @@
|
|
|
120
223
|
"project:deploy:pipeline:start": {
|
|
121
224
|
"id": "project:deploy:pipeline:start",
|
|
122
225
|
"summary": "Deploy changes from a branch to the pipeline stage’s org.",
|
|
123
|
-
"description": "Before you run this command, changes in the branch must be merged in the source control repository.",
|
|
226
|
+
"description": "Before you run this command, changes in the pipeline stage's branch must be merged in the source control repository.",
|
|
124
227
|
"strict": true,
|
|
125
228
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
126
229
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
@@ -143,7 +246,133 @@
|
|
|
143
246
|
"name": "branch-name",
|
|
144
247
|
"type": "option",
|
|
145
248
|
"char": "b",
|
|
146
|
-
"summary": "Name of the branch in the source control repository
|
|
249
|
+
"summary": "Name of the branch in the source control repository that corresponds to the pipeline stage that you want to deploy the changes to.",
|
|
250
|
+
"required": true,
|
|
251
|
+
"multiple": false
|
|
252
|
+
},
|
|
253
|
+
"bundle-version-name": {
|
|
254
|
+
"name": "bundle-version-name",
|
|
255
|
+
"type": "option",
|
|
256
|
+
"char": "v",
|
|
257
|
+
"summary": "Version name of the bundle.",
|
|
258
|
+
"description": "You must indicate the bundle version if deploying to the environment that corresponds to the first stage after the bundling stage.",
|
|
259
|
+
"multiple": false
|
|
260
|
+
},
|
|
261
|
+
"deploy-all": {
|
|
262
|
+
"name": "deploy-all",
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"char": "a",
|
|
265
|
+
"summary": "Deploy all metadata in the branch to the stage's org.",
|
|
266
|
+
"description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
|
|
267
|
+
"allowNo": false
|
|
268
|
+
},
|
|
269
|
+
"devops-center-project-name": {
|
|
270
|
+
"name": "devops-center-project-name",
|
|
271
|
+
"type": "option",
|
|
272
|
+
"char": "p",
|
|
273
|
+
"summary": "Name of the DevOps Center project.",
|
|
274
|
+
"required": true,
|
|
275
|
+
"multiple": false
|
|
276
|
+
},
|
|
277
|
+
"devops-center-username": {
|
|
278
|
+
"name": "devops-center-username",
|
|
279
|
+
"type": "option",
|
|
280
|
+
"char": "c",
|
|
281
|
+
"summary": "Username or alias of the DevOps Center org.",
|
|
282
|
+
"required": true,
|
|
283
|
+
"multiple": false
|
|
284
|
+
},
|
|
285
|
+
"tests": {
|
|
286
|
+
"name": "tests",
|
|
287
|
+
"type": "option",
|
|
288
|
+
"char": "t",
|
|
289
|
+
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
290
|
+
"description": "Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces.",
|
|
291
|
+
"multiple": true
|
|
292
|
+
},
|
|
293
|
+
"test-level": {
|
|
294
|
+
"name": "test-level",
|
|
295
|
+
"type": "option",
|
|
296
|
+
"char": "l",
|
|
297
|
+
"summary": "Deployment Apex testing level.",
|
|
298
|
+
"description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".",
|
|
299
|
+
"multiple": false,
|
|
300
|
+
"options": [
|
|
301
|
+
"NoTestRun",
|
|
302
|
+
"RunSpecifiedTests",
|
|
303
|
+
"RunLocalTests",
|
|
304
|
+
"RunAllTestsInOrg"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"async": {
|
|
308
|
+
"name": "async",
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"summary": "Run the command asynchronously.",
|
|
311
|
+
"description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf project deploy pipeline resume\". To check the status of the deployment, run \"sf project deploy pipeline report\".",
|
|
312
|
+
"allowNo": false
|
|
313
|
+
},
|
|
314
|
+
"wait": {
|
|
315
|
+
"name": "wait",
|
|
316
|
+
"type": "option",
|
|
317
|
+
"char": "w",
|
|
318
|
+
"summary": "Number of minutes to wait for command to complete and display results.",
|
|
319
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
|
|
320
|
+
"helpValue": "<minutes>",
|
|
321
|
+
"multiple": false,
|
|
322
|
+
"exclusive": [
|
|
323
|
+
"async"
|
|
324
|
+
],
|
|
325
|
+
"default": {
|
|
326
|
+
"quantity": 33,
|
|
327
|
+
"unit": 0
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"verbose": {
|
|
331
|
+
"name": "verbose",
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"summary": "Show verbose output of the command result.",
|
|
334
|
+
"allowNo": false
|
|
335
|
+
},
|
|
336
|
+
"concise": {
|
|
337
|
+
"name": "concise",
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"summary": "Show concise output of the command result.",
|
|
340
|
+
"allowNo": false,
|
|
341
|
+
"exclusive": [
|
|
342
|
+
"verbose"
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"args": {},
|
|
347
|
+
"hasDynamicHelp": true
|
|
348
|
+
},
|
|
349
|
+
"project:deploy:pipeline:validate": {
|
|
350
|
+
"id": "project:deploy:pipeline:validate",
|
|
351
|
+
"summary": "Perform a validate-only deployment from a branch to the pipeline stage’s org.",
|
|
352
|
+
"description": "A validation runs Apex tests to verify whether a deployment will succeed without actually deploying the metadata to your environment, so you can then quickly deploy the changes later without re-running the tests.",
|
|
353
|
+
"strict": true,
|
|
354
|
+
"pluginName": "@salesforce/plugin-devops-center",
|
|
355
|
+
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
356
|
+
"pluginType": "core",
|
|
357
|
+
"state": "beta",
|
|
358
|
+
"aliases": [],
|
|
359
|
+
"examples": [
|
|
360
|
+
"Perform a validate-only deployment from the Staging branch to the Staging environment (sandbox):\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox",
|
|
361
|
+
"Perform a validate-only deployment of all changes from the main branch to the release environment:\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name main --devops-center-username MyReleaseOrg --deploy-all"
|
|
362
|
+
],
|
|
363
|
+
"flags": {
|
|
364
|
+
"json": {
|
|
365
|
+
"name": "json",
|
|
366
|
+
"type": "boolean",
|
|
367
|
+
"description": "Format output as json.",
|
|
368
|
+
"helpGroup": "GLOBAL",
|
|
369
|
+
"allowNo": false
|
|
370
|
+
},
|
|
371
|
+
"branch-name": {
|
|
372
|
+
"name": "branch-name",
|
|
373
|
+
"type": "option",
|
|
374
|
+
"char": "b",
|
|
375
|
+
"summary": "Name of the branch in the source control repository that corresponds to the pipeline stage that you want to deploy the changes to.",
|
|
147
376
|
"required": true,
|
|
148
377
|
"multiple": false
|
|
149
378
|
},
|
|
@@ -159,7 +388,7 @@
|
|
|
159
388
|
"name": "deploy-all",
|
|
160
389
|
"type": "boolean",
|
|
161
390
|
"char": "a",
|
|
162
|
-
"summary": "Deploy all metadata in branch.",
|
|
391
|
+
"summary": "Deploy all metadata in the branch to the stage's org.",
|
|
163
392
|
"description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
|
|
164
393
|
"allowNo": false
|
|
165
394
|
},
|
|
@@ -184,7 +413,7 @@
|
|
|
184
413
|
"type": "option",
|
|
185
414
|
"char": "t",
|
|
186
415
|
"summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
|
|
187
|
-
"description": "Separate multiple test names with commas
|
|
416
|
+
"description": "Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces.",
|
|
188
417
|
"multiple": true
|
|
189
418
|
},
|
|
190
419
|
"test-level": {
|