@salesforce/plugin-devops-center 0.1.0-beta.1 → 1.0.0-beta.1
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 +23 -22
- package/lib/commands/{deploy → project/deploy}/pipeline/report.d.ts +2 -2
- package/lib/commands/{deploy → project/deploy}/pipeline/report.js +2 -2
- package/lib/commands/project/deploy/pipeline/report.js.map +1 -0
- package/lib/commands/{deploy → project/deploy}/pipeline/resume.d.ts +2 -3
- package/lib/commands/{deploy → project/deploy}/pipeline/resume.js +2 -3
- package/lib/commands/project/deploy/pipeline/resume.js.map +1 -0
- package/lib/commands/{deploy/pipeline.d.ts → project/deploy/pipeline/start.d.ts} +3 -3
- package/lib/commands/{deploy/pipeline.js → project/deploy/pipeline/start.js} +5 -5
- package/lib/commands/project/deploy/pipeline/start.js.map +1 -0
- package/lib/common/base/abstractPromote.js +5 -2
- package/lib/common/base/abstractPromote.js.map +1 -1
- package/lib/common/base/abstractReportOnPromote.js +13 -19
- package/lib/common/base/abstractReportOnPromote.js.map +1 -1
- package/lib/common/base/abstractResume.d.ts +0 -1
- package/lib/common/base/abstractResume.js +5 -2
- package/lib/common/base/abstractResume.js.map +1 -1
- package/lib/common/flags/flags.d.ts +5 -0
- package/lib/common/flags/flags.js +14 -6
- package/lib/common/flags/flags.js.map +1 -1
- package/lib/common/outputColumns.js +1 -1
- package/lib/common/outputColumns.js.map +1 -1
- package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
- package/lib/common/outputService/deploySummaryBuilder.js +6 -8
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
- package/lib/common/outputService/reportOutputService.js +1 -1
- package/lib/common/outputService/reportOutputService.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 +2 -1
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.js +3 -2
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +1 -1
- package/lib/common/selectors/deploymentResultsSelector.js +3 -1
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.d.ts +1 -1
- package/lib/common/selectors/environmentSelector.js +3 -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 +2 -1
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/selectorUtils.d.ts +3 -0
- package/lib/common/selectors/selectorUtils.js +36 -0
- package/lib/common/selectors/selectorUtils.js.map +1 -0
- package/lib/common/selectors/workItemSelector.js +2 -1
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/common/types.d.ts +1 -0
- package/lib/common/types.js.map +1 -1
- package/lib/common/utils.js +6 -7
- package/lib/common/utils.js.map +1 -1
- package/lib/configMeta.d.ts +5 -0
- package/lib/configMeta.js +8 -0
- package/lib/configMeta.js.map +1 -1
- package/messages/commonErrors.md +16 -0
- package/messages/commonFlags.md +4 -4
- package/messages/config.md +4 -0
- package/messages/deploy.output.md +2 -2
- package/messages/{deploy.pipeline.resume.md → project.deploy.pipeline.resume.md} +0 -4
- package/messages/promoteFlags.md +1 -1
- package/messages/resume.output.md +1 -2
- package/oclif.manifest.json +121 -121
- package/package.json +19 -14
- package/lib/commands/deploy/pipeline/report.js.map +0 -1
- package/lib/commands/deploy/pipeline/resume.js.map +0 -1
- package/lib/commands/deploy/pipeline.js.map +0 -1
- /package/messages/{deploy.pipeline.report.md → project.deploy.pipeline.report.md} +0 -0
- /package/messages/{deploy.pipeline.md → project.deploy.pipeline.start.md} +0 -0
- /package/schemas/{deploy-pipeline-report.json → project-deploy-pipeline-report.json} +0 -0
- /package/schemas/{deploy-pipeline-resume.json → project-deploy-pipeline-resume.json} +0 -0
- /package/schemas/{deploy-pipeline.json → project-deploy-pipeline-start.json} +0 -0
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
# Run using local run file.
|
|
42
|
-
./bin/dev deploy pipeline
|
|
42
|
+
./bin/dev project deploy pipeline start
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
|
|
@@ -47,6 +47,7 @@ There should be no differences when running via the Salesforce CLI or using the
|
|
|
47
47
|
```bash
|
|
48
48
|
# Link your plugin to the sf cli
|
|
49
49
|
sf plugins link .
|
|
50
|
+
|
|
50
51
|
# To verify
|
|
51
52
|
sf plugins
|
|
52
53
|
```
|
|
@@ -55,17 +56,17 @@ sf plugins
|
|
|
55
56
|
|
|
56
57
|
<!-- commands -->
|
|
57
58
|
|
|
58
|
-
- [`sf deploy pipeline`](#sf-deploy-pipeline)
|
|
59
|
-
- [`sf deploy pipeline report`](#sf-deploy-pipeline-report)
|
|
60
|
-
- [`sf deploy pipeline resume`](#sf-deploy-pipeline-resume)
|
|
59
|
+
- [`sf project deploy pipeline start`](#sf-project-deploy-pipeline-start)
|
|
60
|
+
- [`sf project deploy pipeline report`](#sf-project-deploy-pipeline-report)
|
|
61
|
+
- [`sf project deploy pipeline resume`](#sf-project-deploy-pipeline-resume)
|
|
61
62
|
|
|
62
|
-
## `sf deploy pipeline`
|
|
63
|
+
## `sf project deploy pipeline start`
|
|
63
64
|
|
|
64
65
|
Deploy changes from a branch to the pipeline stage’s org.
|
|
65
66
|
|
|
66
67
|
```
|
|
67
68
|
USAGE
|
|
68
|
-
$ sf deploy pipeline [--json] [-c <value>] [-p <value>] [-b <value>] [-v <value>] [-a] [--async | -w <value>] [--concise | --verbose]
|
|
69
|
+
$ sf project deploy pipeline start [--json] [-c <value>] [-p <value>] [-b <value>] [-v <value>] [-a] [--async | -w <value>] [--concise | --verbose]
|
|
69
70
|
[-t <value>] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg]
|
|
70
71
|
|
|
71
72
|
FLAGS
|
|
@@ -91,11 +92,11 @@ Before you run this command, changes in the branch must be merged in the source
|
|
|
91
92
|
EXAMPLES
|
|
92
93
|
Deploy changes in the Staging branch to the Staging environment (sandbox), if the previous stage is the bundling stage:
|
|
93
94
|
|
|
94
|
-
$ sf deploy pipeline —-devops-center-project-name “Recruiting App” —-branch-name staging —-devops-center-username MyStagingSandbox —-bundle-version-name 1.0
|
|
95
|
+
$ sf project deploy pipeline start —-devops-center-project-name “Recruiting App” —-branch-name staging —-devops-center-username MyStagingSandbox —-bundle-version-name 1.0
|
|
95
96
|
|
|
96
97
|
Deploy all changes in the main branch to the release environment:
|
|
97
98
|
|
|
98
|
-
$ sf deploy pipeline —-devops-center-project-name “Recruiting App” —-branch-name main —-devops-center-username MyReleaseOrg —-deploy-all
|
|
99
|
+
$ sf project deploy pipeline start —-devops-center-project-name “Recruiting App” —-branch-name main —-devops-center-username MyReleaseOrg —-deploy-all
|
|
99
100
|
|
|
100
101
|
FLAG DESCRIPTIONS
|
|
101
102
|
-a, --deploy-all Deploy all metadata in the branch
|
|
@@ -141,21 +142,21 @@ FLAG DESCRIPTIONS
|
|
|
141
142
|
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
|
|
142
143
|
|
|
143
144
|
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.
|
|
144
|
-
To check the status of the deploy operation, run "sf deploy pipeline report".
|
|
145
|
+
To check the status of the deploy operation, run "sf project deploy pipeline report".
|
|
145
146
|
|
|
146
147
|
--async Run the command asynchronously.
|
|
147
148
|
|
|
148
149
|
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,
|
|
149
|
-
run "sf deploy pipeline resume". To check the status of the deployment, run "sf deploy pipeline report".
|
|
150
|
+
run "sf project deploy pipeline resume". To check the status of the deployment, run "sf project deploy pipeline report".
|
|
150
151
|
```
|
|
151
152
|
|
|
152
|
-
## `sf deploy pipeline report`
|
|
153
|
+
## `sf project deploy pipeline report`
|
|
153
154
|
|
|
154
155
|
Check the status of a pipeline deploy operation.
|
|
155
156
|
|
|
156
157
|
```
|
|
157
158
|
USAGE
|
|
158
|
-
$ sf deploy pipeline report [--json] [-c <value>] [-i <value>] [-r]
|
|
159
|
+
$ sf project deploy pipeline report [--json] [-c <value>] [-i <value>] [-r]
|
|
159
160
|
|
|
160
161
|
FLAGS
|
|
161
162
|
-c, --devops-center-username=<value> Username or alias for the DevOps Center org.
|
|
@@ -173,11 +174,11 @@ DESCRIPTION
|
|
|
173
174
|
EXAMPLES
|
|
174
175
|
Check the status using a job ID:
|
|
175
176
|
|
|
176
|
-
$ sf deploy pipeline report --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2
|
|
177
|
+
$ sf project deploy pipeline report --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2
|
|
177
178
|
|
|
178
179
|
Check the status of the most recent deploy operation:
|
|
179
180
|
|
|
180
|
-
$ sf deploy pipeline report --devops-center-username MyStagingSandbox --use-most-recent
|
|
181
|
+
$ sf project deploy pipeline report --devops-center-username MyStagingSandbox --use-most-recent
|
|
181
182
|
|
|
182
183
|
FLAG DESCRIPTIONS
|
|
183
184
|
-c, --devops-center-username=<value> Username or alias for the DevOps Center org.
|
|
@@ -192,13 +193,13 @@ FLAG DESCRIPTIONS
|
|
|
192
193
|
|
|
193
194
|
```
|
|
194
195
|
|
|
195
|
-
## `sf deploy pipeline resume`
|
|
196
|
+
## `sf project deploy pipeline resume`
|
|
196
197
|
|
|
197
198
|
Resume watching a pipeline deploy operation.
|
|
198
199
|
|
|
199
200
|
```
|
|
200
201
|
USAGE
|
|
201
|
-
$ sf deploy pipeline resume [--json] [-c <value>] [-i <value>] [-r] [-w <value>]
|
|
202
|
+
$ sf project deploy pipeline resume [--json] [-c <value>] [-i <value>] [-r] [-w <value>]
|
|
202
203
|
|
|
203
204
|
FLAGS
|
|
204
205
|
-c, --devops-center-username=<value> Username or alias of the DevOps Center org.
|
|
@@ -218,20 +219,20 @@ Resume watching a pipeline deploy operation.
|
|
|
218
219
|
EXAMPLES
|
|
219
220
|
Resume watching a deploy operation using a job ID:
|
|
220
221
|
|
|
221
|
-
$ sf deploy pipeline resume --job-id 0Af0x000017yLUFCA2
|
|
222
|
+
$ sf project deploy pipeline resume --job-id 0Af0x000017yLUFCA2
|
|
222
223
|
|
|
223
224
|
Resume watching the most recent deploy operation:
|
|
224
225
|
|
|
225
|
-
$ sf deploy pipeline resume --use-most-recent
|
|
226
|
+
$ sf project deploy pipeline resume --use-most-recent
|
|
226
227
|
|
|
227
228
|
FLAG DESCRIPTIONS
|
|
228
229
|
-i, --job-id=<value> Job ID of the pipeline deploy operation you want to resume.
|
|
229
230
|
|
|
230
231
|
These commands return a job ID if they time out or you specified the --async flag:
|
|
231
232
|
|
|
232
|
-
- sf deploy pipeline
|
|
233
|
-
- sf deploy pipeline validate
|
|
234
|
-
- sf deploy pipeline quick
|
|
233
|
+
- sf project deploy pipeline start
|
|
234
|
+
- sf project deploy pipeline validate
|
|
235
|
+
- sf project deploy pipeline quick
|
|
235
236
|
|
|
236
237
|
The job ID is valid for 10 days from when you started the deploy operation.
|
|
237
238
|
|
|
@@ -241,5 +242,5 @@ Resume watching a pipeline deploy operation.
|
|
|
241
242
|
|
|
242
243
|
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
|
|
243
244
|
|
|
244
|
-
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 "sf deploy pipeline
|
|
245
|
+
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 "sf project deploy pipeline report".
|
|
245
246
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PromotePipelineResult } from '
|
|
3
|
-
import { ReportOnPromoteCommand } from '
|
|
2
|
+
import { PromotePipelineResult } from '../../../../common';
|
|
3
|
+
import { ReportOnPromoteCommand } from '../../../../common/base/abstractReportOnPromote';
|
|
4
4
|
export default class DeployPipelineReport extends ReportOnPromoteCommand<typeof SfCommand> {
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly summary: string;
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
*/
|
|
9
9
|
const core_1 = require("@salesforce/core");
|
|
10
10
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
-
const abstractReportOnPromote_1 = require("
|
|
11
|
+
const abstractReportOnPromote_1 = require("../../../../common/base/abstractReportOnPromote");
|
|
12
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
13
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline.report');
|
|
13
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.report');
|
|
14
14
|
class DeployPipelineReport extends abstractReportOnPromote_1.ReportOnPromoteCommand {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/report.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA4C;AAC5C,iEAA+D;AAE/D,6FAAyF;AAEzF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAE7G,MAAqB,oBAAqB,SAAQ,gDAAwC;IAA1F;;QAmBY,kBAAa,GAAG,QAAQ,CAAC;IAKrC,CAAC;IAHQ,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACnC,CAAC;;AAvBH,uCAwBC;AAvBwB,gCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,4BAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,6BAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,0BAAK,GAAG,MAAM,CAAC;AACxB,0BAAK,GAAG;IACpB,QAAQ,EAAE,uBAAK,CAAC,YAAY,CAAC;QAC3B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;QAC5D,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;QACpD,UAAU,EAAE,CAAC,iBAAiB,EAAE,QAAQ,CAAC;KAC1C,CAAC;IACF,iBAAiB,EAAE,uBAAK,CAAC,OAAO,CAAC;QAC/B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,mCAAmC,CAAC;QACrE,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC;QAC7D,UAAU,EAAE,CAAC,iBAAiB,EAAE,QAAQ,CAAC;KAC1C,CAAC;CACH,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PromotePipelineResult } from '
|
|
3
|
-
import { ResumeCommand } from '
|
|
2
|
+
import { PromotePipelineResult } from '../../../../common';
|
|
3
|
+
import { ResumeCommand } from '../../../../common/base/abstractResume';
|
|
4
4
|
export default class DeployPipelineResume extends ResumeCommand<typeof SfCommand> {
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
8
|
static readonly state = "beta";
|
|
9
9
|
protected operationType: string;
|
|
10
|
-
protected baseCommand: string;
|
|
11
10
|
run(): Promise<PromotePipelineResult>;
|
|
12
11
|
}
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const core_1 = require("@salesforce/core");
|
|
10
|
-
const abstractResume_1 = require("
|
|
10
|
+
const abstractResume_1 = require("../../../../common/base/abstractResume");
|
|
11
11
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline.resume');
|
|
12
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.resume');
|
|
13
13
|
class DeployPipelineResume extends abstractResume_1.ResumeCommand {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.operationType = 'Deployment';
|
|
17
|
-
this.baseCommand = 'deploy pipeline';
|
|
18
17
|
}
|
|
19
18
|
async run() {
|
|
20
19
|
return this.resumeOperation();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/resume.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAG5C,2EAAuE;AAEvE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAE7G,MAAqB,oBAAqB,SAAQ,8BAA+B;IAAjF;;QAMY,kBAAa,GAAG,YAAY,CAAC;IAKzC,CAAC;IAHQ,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;IAChC,CAAC;;AAVH,uCAWC;AAVwB,4BAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,gCAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,6BAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,0BAAK,GAAG,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PromoteCommand } from '
|
|
3
|
-
import { PromoteOptions, PromotePipelineResult } from '
|
|
2
|
+
import { PromoteCommand } from '../../../../common/base/abstractPromote';
|
|
3
|
+
import { PromoteOptions, PromotePipelineResult } from '../../../../common';
|
|
4
4
|
/**
|
|
5
|
-
* Contains the logic to execute the sf deploy pipeline command.
|
|
5
|
+
* Contains the logic to execute the sf project deploy pipeline start command.
|
|
6
6
|
*/
|
|
7
7
|
export default class DeployPipeline extends PromoteCommand<typeof SfCommand> {
|
|
8
8
|
static readonly summary: string;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const core_1 = require("@salesforce/core");
|
|
10
|
-
const abstractPromote_1 = require("
|
|
11
|
-
const constants_1 = require("
|
|
10
|
+
const abstractPromote_1 = require("../../../../common/base/abstractPromote");
|
|
11
|
+
const constants_1 = require("../../../../common/constants");
|
|
12
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
13
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline');
|
|
13
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
|
|
14
14
|
/**
|
|
15
|
-
* Contains the logic to execute the sf deploy pipeline command.
|
|
15
|
+
* Contains the logic to execute the sf project deploy pipeline start command.
|
|
16
16
|
*/
|
|
17
17
|
class DeployPipeline extends abstractPromote_1.PromoteCommand {
|
|
18
18
|
constructor() {
|
|
@@ -47,4 +47,4 @@ DeployPipeline.summary = messages.getMessage('summary');
|
|
|
47
47
|
DeployPipeline.description = messages.getMessage('description');
|
|
48
48
|
DeployPipeline.examples = messages.getMessages('examples');
|
|
49
49
|
DeployPipeline.state = 'beta';
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../../src/commands/project/deploy/pipeline/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAE5C,6EAAyE;AAEzE,4DAAwD;AAExD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,+BAA+B,CAAC,CAAC;AAE5G;;GAEG;AACH,MAAqB,cAAe,SAAQ,gCAAgC;IAA5E;;QAKmB,qBAAgB,GAAG,IAAI,CAAC;IA0B3C,CAAC;IAxBQ,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACO,gBAAgB;QACxB,MAAM,WAAW,GAAkB,IAAI,CAAC,cAAc,EAAE,CAAC;QACzD,OAAO,WAAW,CAAC,6BAA6B;YAC9C,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;YACzD,CAAC,CAAC,oBAAQ,CAAC;IACf,CAAC;IAED;;OAEG;IACO,iBAAiB;QACzB,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACnD,CAAC;;AA9BH,iCA+BC;AA9BwB,sBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,0BAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,uBAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,oBAAK,GAAG,MAAM,CAAC"}
|
|
@@ -127,8 +127,11 @@ class PromoteCommand extends sf_plugins_core_1.SfCommand {
|
|
|
127
127
|
* @returns
|
|
128
128
|
*/
|
|
129
129
|
catch(error) {
|
|
130
|
-
if (error.name
|
|
131
|
-
const err = messages.createError('error.ClientTimeout', [
|
|
130
|
+
if (error.name?.includes('GenericTimeoutError')) {
|
|
131
|
+
const err = messages.createError('error.ClientTimeout', [
|
|
132
|
+
this.config.bin,
|
|
133
|
+
this.id?.split(':').slice(0, -1).join(' '),
|
|
134
|
+
]);
|
|
132
135
|
return super.catch({ ...error, name: err.name, message: err.message, code: err.code });
|
|
133
136
|
}
|
|
134
137
|
return super.catch(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractPromote.js","sourceRoot":"","sources":["../../../src/common/base/abstractPromote.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAA0D;AAC1D,iEAAwD;AAGxD,gEAA6D;AAC7D,2EAAuE;AACvE,0BAMY;AACZ,0CAAsG;AACtG,gEAOuC;AAGvC,4CAAyE;AACzE,oCAAgF;AAChF,oCAAqD;AACrD,oDAA8E;AAE9E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAM3F,MAAsB,cAA2C,SAAQ,2BAAgC;IAAzG;;QAoBU,kBAAa,GAAG,EAAE,CAAC,CAAC,8EAA8E;
|
|
1
|
+
{"version":3,"file":"abstractPromote.js","sourceRoot":"","sources":["../../../src/common/base/abstractPromote.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAA0D;AAC1D,iEAAwD;AAGxD,gEAA6D;AAC7D,2EAAuE;AACvE,0BAMY;AACZ,0CAAsG;AACtG,gEAOuC;AAGvC,4CAAyE;AACzE,oCAAgF;AAChF,oCAAqD;AACrD,oDAA8E;AAE9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AE,yBAAU;IACzB,qBAAqB,EAAE,gCAAiB;IACxC,YAAY,EAAE,wBAAS;IACvB,4BAA4B,EAAE,+BAAuB;IACrD,wBAAwB,EAAE,IAAA,2BAAmB,GAAE;IAC/C,KAAK,EAAE,4BAAa;IACpB,YAAY,EAAE,IAAA,wBAAS,GAAE;IACzB,KAAK,EAAL,oBAAK;IACL,IAAI,EAAJ,YAAI;IACJ,OAAO,EAAP,eAAO;IACP,OAAO,EAAP,eAAO;CACR,CAAC"}
|
|
@@ -34,27 +34,21 @@ class ReportOnPromoteCommand extends sf_plugins_core_1.SfCommand {
|
|
|
34
34
|
? (await deployPipelineCache_1.DeployPipelineCache.create()).getLatestKeyOrThrow()
|
|
35
35
|
: this.flags['job-id'];
|
|
36
36
|
const org = this.flags['devops-center-username'];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
displayer.printOpSummary();
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
jobId: asyncJobId,
|
|
46
|
-
status: operationResult.sf_devops__Status__r.sf_devops__Status__c,
|
|
47
|
-
message: operationResult.sf_devops__Status__r.sf_devops__Message__c,
|
|
48
|
-
errorDetails: operationResult.sf_devops__Status__r.sf_devops__Error_Details__c,
|
|
49
|
-
};
|
|
37
|
+
// query the deployment result related to the promote operation.
|
|
38
|
+
const operationResult = await (0, deploymentResultsSelector_1.selectOneDeploymentResultByAsyncJobId)(org.getConnection(), asyncJobId);
|
|
39
|
+
if (operationResult && !this.jsonEnabled()) {
|
|
40
|
+
const displayer = new outputServiceFactory_1.OutputServiceFactory().forPromotionReport(this.flags, operationResult, this.operationName);
|
|
41
|
+
displayer.printOpSummary();
|
|
50
42
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (error.name === 'SingleRecordQuery_NoRecords') {
|
|
54
|
-
throw messages.createError('error.InvalidAorId', [asyncJobId]);
|
|
55
|
-
}
|
|
56
|
-
throw err;
|
|
43
|
+
else if (!operationResult) {
|
|
44
|
+
throw messages.createError('error.InvalidAorId', [asyncJobId]);
|
|
57
45
|
}
|
|
46
|
+
return {
|
|
47
|
+
jobId: asyncJobId,
|
|
48
|
+
status: operationResult.sf_devops__Status__r.sf_devops__Status__c,
|
|
49
|
+
message: operationResult.sf_devops__Status__r.sf_devops__Message__c,
|
|
50
|
+
errorDetails: operationResult.sf_devops__Status__r.sf_devops__Error_Details__c,
|
|
51
|
+
};
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
exports.ReportOnPromoteCommand = ReportOnPromoteCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractReportOnPromote.js","sourceRoot":"","sources":["../../../src/common/base/abstractReportOnPromote.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAAiD;AACjD,iEAAwD;AAExD,0EAAuE;AAEvE,oDAA+D;AAE/D,wFAAiG;AAEjG,kFAA+E;AAE/E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAM3F,MAAsB,sBAAmD,SAAQ,2BAAgC;IAOxG,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,mEAAmE;QACnE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC;YACjC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;YACtB,SAAS,EAAG,KAAK,CAAC,IAAsC,CAAC,SAAS;SACnE,CAAC,CAAC;QACH,mEAAmE;QACnE,IAAI,CAAC,KAAK,GAAG,KAAiB,CAAC;IACjC,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,kBAAkB;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;YAC9C,CAAC,CAAC,CAAC,MAAM,yCAAmB,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,MAAM,eAAe,GAA4B,MAAM,IAAA,iEAAqC,EAC1F,GAAG,CAAC,aAAa,EAAE,EACnB,UAAU,CACX,CAAC;QACF,IAAI,eAAe,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE;YAC1C,MAAM,SAAS,GAAkB,IAAI,2CAAoB,EAAE,CAAC,kBAAkB,CAC5E,IAAI,CAAC,KAAK,EACV,eAAe,EACf,IAAI,CAAC,aAAa,CACnB,CAAC;YACF,SAAS,CAAC,cAAc,EAAE,CAAC;SAC5B;aAAM,IAAI,CAAC,eAAe,EAAE;YAC3B,MAAM,QAAQ,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;SAChE;QAED,OAAO;YACL,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,oBAAoB;YACjE,OAAO,EAAE,eAAe,CAAC,oBAAoB,CAAC,qBAAqB;YACnE,YAAY,EAAE,eAAe,CAAC,oBAAoB,CAAC,2BAA2B;SAC/E,CAAC;IACJ,CAAC;;AAjDH,wDAkDC;AAjDe,gCAAS,GAAG;IACxB,wBAAwB,EAAE,IAAA,2BAAmB,GAAE;CAChD,CAAC"}
|
|
@@ -24,7 +24,6 @@ export declare abstract class ResumeCommand<T extends typeof SfCommand> extends
|
|
|
24
24
|
protected flags: Flags<T>;
|
|
25
25
|
private outputService;
|
|
26
26
|
protected abstract operationType: string;
|
|
27
|
-
protected abstract baseCommand: string;
|
|
28
27
|
init(): Promise<void>;
|
|
29
28
|
protected resumeOperation(): Promise<PromotePipelineResult>;
|
|
30
29
|
/**
|
|
@@ -72,8 +72,11 @@ class ResumeCommand extends sf_plugins_core_1.SfCommand {
|
|
|
72
72
|
* @returns
|
|
73
73
|
*/
|
|
74
74
|
catch(error) {
|
|
75
|
-
if (error.name
|
|
76
|
-
const err = messages.createError('error.ClientTimeout', [
|
|
75
|
+
if (error.name?.includes('GenericTimeoutError')) {
|
|
76
|
+
const err = messages.createError('error.ClientTimeout', [
|
|
77
|
+
this.config.bin,
|
|
78
|
+
this.id?.split(':').slice(0, -1).join(' '),
|
|
79
|
+
]);
|
|
77
80
|
return super.catch({ ...error, name: err.name, message: err.message, code: err.code });
|
|
78
81
|
}
|
|
79
82
|
return super.catch(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractResume.js","sourceRoot":"","sources":["../../../src/common/base/abstractResume.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAA0D;AAC1D,iEAAwD;AAExD,yCAMsB;AACtB,oDAA2F;AAE3F,kEAA+D;AAC/D,sDAA+E;AAE/E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAE3F;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,MAA4B;IACzD,OAAO,CAAC,6BAAoB,CAAC,SAAS,EAAE,6BAAoB,CAAC,KAAK,EAAE,6BAAoB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACrH,CAAC;AAFD,wCAEC;AAMD;;;GAGG;AAEH,MAAsB,aAA0C,SAAQ,2BAAgC;
|
|
1
|
+
{"version":3,"file":"abstractResume.js","sourceRoot":"","sources":["../../../src/common/base/abstractResume.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2CAA0D;AAC1D,iEAAwD;AAExD,yCAMsB;AACtB,oDAA2F;AAE3F,kEAA+D;AAC/D,sDAA+E;AAE/E,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAE3F;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,MAA4B;IACzD,OAAO,CAAC,6BAAoB,CAAC,SAAS,EAAE,6BAAoB,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AC;;AAxEH,sCAyEC;AAxEC,+EAA+E;AACjE,uBAAS,GAAG;IACxB,wBAAwB,EAAE,IAAA,2BAAmB,GAAE;IAC/C,QAAQ,EAAE,aAAK;IACf,iBAAiB,EAAE,qBAAa;IAChC,IAAI,EAAJ,YAAI;CACL,CAAC"}
|
|
@@ -17,3 +17,8 @@ export declare const jobId: OptionFlag<string | undefined>;
|
|
|
17
17
|
export declare const useMostRecent: BooleanFlag<boolean>;
|
|
18
18
|
export declare const verbose: BooleanFlag<boolean>;
|
|
19
19
|
export declare const concise: BooleanFlag<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Helper to get the userneame or alias of the default Devops Center org
|
|
22
|
+
* from the target-devops-center config variable.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getDefaultDevopsCenterUsernameAlias: () => Promise<string | undefined>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.concise = exports.verbose = exports.useMostRecent = exports.jobId = exports.requiredDoceOrgFlag = exports.wait = exports.devopsCenterProjectName = void 0;
|
|
9
|
+
exports.getDefaultDevopsCenterUsernameAlias = exports.concise = exports.verbose = exports.useMostRecent = exports.jobId = exports.requiredDoceOrgFlag = exports.wait = exports.devopsCenterProjectName = void 0;
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
11
|
const kit_1 = require("@salesforce/kit");
|
|
12
12
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
@@ -44,7 +44,7 @@ exports.requiredDoceOrgFlag = core_2.Flags.custom({
|
|
|
44
44
|
summary: messages.getMessage('flags.targetDoceOrg.summary'),
|
|
45
45
|
parse: async (input) => getOrgOrThrow(input),
|
|
46
46
|
default: async () => getOrgOrThrow(),
|
|
47
|
-
defaultHelp: async () => (
|
|
47
|
+
defaultHelp: async () => (0, exports.getDefaultDevopsCenterUsernameAlias)(),
|
|
48
48
|
required: true,
|
|
49
49
|
});
|
|
50
50
|
exports.jobId = sf_plugins_core_1.Flags.salesforceId({
|
|
@@ -66,6 +66,15 @@ exports.concise = sf_plugins_core_1.Flags.boolean({
|
|
|
66
66
|
summary: messages.getMessage('flags.concise.summary'),
|
|
67
67
|
exclusive: ['verbose'],
|
|
68
68
|
});
|
|
69
|
+
/**
|
|
70
|
+
* Helper to get the userneame or alias of the default Devops Center org
|
|
71
|
+
* from the target-devops-center config variable.
|
|
72
|
+
*/
|
|
73
|
+
const getDefaultDevopsCenterUsernameAlias = async () => {
|
|
74
|
+
const config = await core_1.ConfigAggregator.create({ customConfigMeta: configMeta_1.default });
|
|
75
|
+
return config.getInfo(configMeta_1.ConfigVars.TARGET_DEVOPS_CENTER)?.value?.toString();
|
|
76
|
+
};
|
|
77
|
+
exports.getDefaultDevopsCenterUsernameAlias = getDefaultDevopsCenterUsernameAlias;
|
|
69
78
|
/**
|
|
70
79
|
*
|
|
71
80
|
* @param input alias/username of an org
|
|
@@ -73,12 +82,11 @@ exports.concise = sf_plugins_core_1.Flags.boolean({
|
|
|
73
82
|
* or to the alias/username set in --target-devops-center config variable.
|
|
74
83
|
*/
|
|
75
84
|
const getOrgOrThrow = async (input) => {
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
if (!alias) {
|
|
85
|
+
const usernameOrAlias = input ? input : await (0, exports.getDefaultDevopsCenterUsernameAlias)();
|
|
86
|
+
if (!usernameOrAlias) {
|
|
79
87
|
throw messages.createError('errors.NoDefaultDoceEnv');
|
|
80
88
|
}
|
|
81
|
-
const org = await core_1.Org.create({ aliasOrUsername:
|
|
89
|
+
const org = await core_1.Org.create({ aliasOrUsername: usernameOrAlias });
|
|
82
90
|
return org;
|
|
83
91
|
};
|
|
84
92
|
//# sourceMappingURL=flags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../../src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AK,CAAC,CAAC,CAAC,MAAM,IAAA,2CAAmC,GAAE,CAAC;IACpF,IAAI,CAAC,eAAe,EAAE;QACpB,MAAM,QAAQ,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;KACvD;IACD,MAAM,GAAG,GAAQ,MAAM,UAAG,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,CAAC;IACxE,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.DeployComponentsTable = void 0;
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
11
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
|
-
const tableElements = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline');
|
|
12
|
+
const tableElements = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.start');
|
|
13
13
|
exports.DeployComponentsTable = {
|
|
14
14
|
columns: {
|
|
15
15
|
// eslint-disable-next-line camelcase
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputColumns.js","sourceRoot":"","sources":["../../src/common/outputColumns.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,aAAa,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,
|
|
1
|
+
{"version":3,"file":"outputColumns.js","sourceRoot":"","sources":["../../src/common/outputColumns.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,aAAa,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,+BAA+B,CAAC,CAAC;AAEpG,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE;QACP,qCAAqC;QACrC,uBAAuB,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,kCAAkC,CAAC,EAAE;QACjG,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;QACzE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;QACzE,qCAAqC;QACrC,uBAAuB,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,6BAA6B,CAAC,EAAE;KAC7F;IACD,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAC/D,CAAC"}
|
|
@@ -17,7 +17,7 @@ export declare abstract class DeploySummaryOutputService<T extends OutputFlags>
|
|
|
17
17
|
protected con: Connection;
|
|
18
18
|
protected branch: string;
|
|
19
19
|
protected stageName: string;
|
|
20
|
-
protected
|
|
20
|
+
protected environmentName: string;
|
|
21
21
|
constructor(con: Connection, branch: string, flags: T);
|
|
22
22
|
printOpSummary(): Promise<void>;
|
|
23
23
|
protected printConciseSummary(): void;
|
|
@@ -12,7 +12,6 @@ const core_1 = require("@salesforce/core");
|
|
|
12
12
|
const constants_1 = require("../constants");
|
|
13
13
|
const deployProgressSummarySelector_1 = require("../selectors/deployProgressSummarySelector");
|
|
14
14
|
const environmentSelector_1 = require("../selectors/environmentSelector");
|
|
15
|
-
const namedCredentialSelector_1 = require("../selectors/namedCredentialSelector");
|
|
16
15
|
const workItemSelector_1 = require("../selectors/workItemSelector");
|
|
17
16
|
const outputService_1 = require("./outputService");
|
|
18
17
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
@@ -62,7 +61,7 @@ class DeploySummaryOutputService extends outputService_1.AbstractOutputService {
|
|
|
62
61
|
}
|
|
63
62
|
// eslint-disable-next-line class-methods-use-this
|
|
64
63
|
printConciseSummary() {
|
|
65
|
-
console.log(output.getMessage('output.concise.summary', [this.stageName, this.branch, this.
|
|
64
|
+
console.log(output.getMessage('output.concise.summary', [this.stageName, this.branch, this.environmentName]));
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
exports.DeploySummaryOutputService = DeploySummaryOutputService;
|
|
@@ -76,11 +75,11 @@ class AdHocDeploySummaryOutputService extends DeploySummaryOutputService {
|
|
|
76
75
|
super(con, branch, flags);
|
|
77
76
|
this.workItemsPromote = workItemsPromote;
|
|
78
77
|
}
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
79
79
|
async buildSummary() {
|
|
80
80
|
this.stageName = this.workItemsPromote[0].sf_devops__Pipeline_Stage__r.Name;
|
|
81
81
|
this.workItems = this.workItemsPromote.map((workItem) => workItem.sf_devops__Work_Item__r.Name);
|
|
82
|
-
|
|
83
|
-
this.orgUrl = (await (0, namedCredentialSelector_1.selectNamedCredentialByName)(this.con, namedCredential)).Endpoint;
|
|
82
|
+
this.environmentName = this.workItemsPromote[0].sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.Name;
|
|
84
83
|
}
|
|
85
84
|
printSummary() {
|
|
86
85
|
const itemsLabel = this.workItems.length === 1 ? output.getMessage('output.item') : output.getMessage('output.items');
|
|
@@ -90,7 +89,7 @@ class AdHocDeploySummaryOutputService extends DeploySummaryOutputService {
|
|
|
90
89
|
itemsLabel,
|
|
91
90
|
workItems,
|
|
92
91
|
this.branch,
|
|
93
|
-
this.
|
|
92
|
+
this.environmentName,
|
|
94
93
|
]));
|
|
95
94
|
}
|
|
96
95
|
}
|
|
@@ -112,8 +111,7 @@ class VersionedOrSoupSummaryOutputService extends DeploySummaryOutputService {
|
|
|
112
111
|
const envId = this.changeBundleInstalls[this.changeBundleInstalls.length - 1].sf_devops__Environment__r.Id;
|
|
113
112
|
const envQueryResp = await (0, environmentSelector_1.selectPipelineStageByEnvironment)(this.con, envId);
|
|
114
113
|
this.stageName = envQueryResp.sf_devops__Pipeline_Stages__r.records[0].Name;
|
|
115
|
-
|
|
116
|
-
this.orgUrl = (await (0, namedCredentialSelector_1.selectNamedCredentialByName)(this.con, namedCredential)).Endpoint;
|
|
114
|
+
this.environmentName = envQueryResp.Name;
|
|
117
115
|
}
|
|
118
116
|
printSummary() {
|
|
119
117
|
const bundlesSummary = [];
|
|
@@ -129,7 +127,7 @@ class VersionedOrSoupSummaryOutputService extends DeploySummaryOutputService {
|
|
|
129
127
|
this.stageName,
|
|
130
128
|
bundlesSummary.join('; '),
|
|
131
129
|
this.branch,
|
|
132
|
-
this.
|
|
130
|
+
this.environmentName,
|
|
133
131
|
]));
|
|
134
132
|
}
|
|
135
133
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploySummaryBuilder.js","sourceRoot":"","sources":["../../../src/common/outputService/deploySummaryBuilder.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yEAAyE;AAEzE,2CAAwD;AACxD,4CAAkD;AAClD,8FAAsH;AACtH,0EAAoG;AACpG,
|
|
1
|
+
{"version":3,"file":"deploySummaryBuilder.js","sourceRoot":"","sources":["../../../src/common/outputService/deploySummaryBuilder.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yEAAyE;AAEzE,2CAAwD;AACxD,4CAAkD;AAClD,8FAAsH;AACtH,0EAAoG;AACpG,oEAAqG;AAErG,mDAAoF;AAEpF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,eAAe,CAAC,CAAC;AAE1F;;;;GAIG;AACH,MAAa,oBAAoB;IAG/B,YAAmB,GAAe;QAChC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,KAAK,CAAC,MAAc,EAAE,KAAa,EAAE,KAAkB;QAClE,uCAAuC;QACvC,MAAM,SAAS,GAA6B,MAAM,IAAA,8DAA8B,EAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC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E,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;IAChC,CAAC;IAES,KAAK,CAAC,YAAY;QAC1B,sDAAsD;QACtD,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAEhC,MAAM,YAAY,GAAiB,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC;QAE5F,+EAA+E;QAC/E,MAAM,SAAS,GAA0B,IAAI,GAAG,EAAE,CAAC;QACnD,SAAS,CAAC,GAAG,CACX,YAAY,CAAC,0BAA0B,EACvC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CACvC,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -13,7 +13,7 @@ const outputUtils_1 = require("./outputUtils");
|
|
|
13
13
|
const deploymentResultOutputService_1 = require("./deploymentResultOutputService");
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
15
15
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'deploy.pipeline.report');
|
|
16
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'project.deploy.pipeline.report');
|
|
17
17
|
/**
|
|
18
18
|
* Base class.
|
|
19
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/reportOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,2CAA4C;AAE5C,oCAAoD;AAEpD,+CAA4C;AAC5C,mFAAuH;AAGvH,0DAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,
|
|
1
|
+
{"version":3,"file":"reportOutputService.js","sourceRoot":"","sources":["../../../src/common/outputService/reportOutputService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,2CAA4C;AAE5C,oCAAoD;AAEpD,+CAA4C;AAC5C,mFAAuH;AAGvH,0DAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,gCAAgC,CAAC,CAAC;AAO7G;;GAEG;AACH,MAAsB,2BACpB,SAAQ,qEAAwC;CACf;AAFnC,kEAEmC;AAEnC,MAAa,0BAA2B,SAAQ,2BAAwC;IAGtF,YAAmB,KAA8B,EAAE,gBAAkC,EAAE,aAAqB;QAC1G,KAAK,CACH;YACE,mEAAmE;YACnE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;YACzB,mEAAmE;YACnE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;SAC1B,EACD,gBAAgB,CACjB,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEM,cAAc;QACnB,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/B,CAAC;IAEM,qBAAqB;QAC1B,6EAA6E;QAC7E,MAAM,yBAAyB,GAAG,IAAA,gCAAwB,EAAC,IAAI,CAAC,gBAAgB,CAAC;YAC/E,0BAA0B;aACzB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACrF,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;YACF,eAAe;aACd,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE5C,MAAM,OAAO,GAAG;YACd,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;YACzD,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE;SAC9D,CAAC;QAEF,IAAI,CAAC,YAAY,CACf,yBAAyB,EACzB,IAAA,yBAAW,EAAC,GAAG,IAAI,CAAC,aAAa,IAAI,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC,EACjF,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AA1CD,gEA0CC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectAsyncOperationResultById = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns an Async Operation Result record filtering by project name.
|
|
@@ -15,7 +16,8 @@ async function selectAsyncOperationResultById(con, aorId) {
|
|
|
15
16
|
const queryStr = `SELECT sf_devops__Status__c, sf_devops__Message__c, sf_devops__Error_Details__c
|
|
16
17
|
FROM sf_devops__Async_Operation_Result__c
|
|
17
18
|
WHERE Id = '${aorId}'`;
|
|
18
|
-
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
20
|
+
return resp.records[0];
|
|
19
21
|
}
|
|
20
22
|
exports.selectAsyncOperationResultById = selectAsyncOperationResultById;
|
|
21
23
|
//# sourceMappingURL=asyncOperationResultsSelector.js.map
|