@salesforce/plugin-deploy-retrieve 1.1.3 → 1.3.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/CHANGELOG.md +22 -0
- package/README.md +35 -7
- package/lib/commands/deploy/metadata.d.ts +15 -12
- package/lib/commands/deploy/metadata.js +79 -70
- package/lib/commands/deploy/metadata.js.map +1 -1
- package/lib/commands/deploy.d.ts +2 -0
- package/lib/commands/deploy.js +19 -0
- package/lib/commands/deploy.js.map +1 -1
- package/lib/commands/retrieve/metadata.d.ts +5 -3
- package/lib/commands/retrieve/metadata.js +49 -47
- package/lib/commands/retrieve/metadata.js.map +1 -1
- package/lib/hooks/deploy.js +1 -1
- package/lib/hooks/deploy.js.map +1 -1
- package/lib/utils/deploy.d.ts +29 -0
- package/lib/utils/deploy.js +81 -0
- package/lib/utils/deploy.js.map +1 -0
- package/lib/utils/metadataDeployer.d.ts +1 -1
- package/lib/utils/metadataDeployer.js +14 -13
- package/lib/utils/metadataDeployer.js.map +1 -1
- package/lib/utils/output.d.ts +8 -9
- package/lib/utils/output.js +127 -29
- package/lib/utils/output.js.map +1 -1
- package/lib/utils/progressBar.d.ts +1 -1
- package/lib/utils/project.d.ts +3 -0
- package/lib/utils/project.js +22 -0
- package/lib/utils/project.js.map +1 -0
- package/lib/utils/{testLevel.d.ts → types.d.ts} +10 -0
- package/lib/utils/{testLevel.js → types.js} +7 -2
- package/lib/utils/types.js.map +1 -0
- package/messages/deploy.md +16 -3
- package/messages/deploy.metadata.md +42 -2
- package/messages/retrieve.metadata.md +10 -2
- package/oclif.manifest.json +1 -1
- package/package.json +30 -14
- package/schemas/deploy-metadata.json +5 -2
- package/lib/utils/componentSetBuilder.d.ts +0 -28
- package/lib/utils/componentSetBuilder.js +0 -124
- package/lib/utils/componentSetBuilder.js.map +0 -1
- package/lib/utils/config.d.ts +0 -1
- package/lib/utils/config.js +0 -18
- package/lib/utils/config.js.map +0 -1
- package/lib/utils/orgs.d.ts +0 -4
- package/lib/utils/orgs.js +0 -39
- package/lib/utils/orgs.js.map +0 -1
- package/lib/utils/requiredFlagValidator.d.ts +0 -3
- package/lib/utils/requiredFlagValidator.js +0 -19
- package/lib/utils/requiredFlagValidator.js.map +0 -1
- package/lib/utils/testLevel.js.map +0 -1
- package/messages/required.flag.md +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.3.0](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.2.1...v1.3.0) (2022-04-13)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- mark metadata commands as beta ([#242](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/242)) ([67e95fc](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/67e95fc6d4cc654bd079954935f77a540abec359))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- display hook initialization errors ([#224](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/224)) ([707c8fe](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/707c8fe008ef44835296cae20f080161ed3f8df7))
|
|
14
|
+
|
|
15
|
+
### [1.2.1](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.2.0...v1.2.1) (2022-03-31)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- remove default value for tests ([#236](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/236)) ([024d6b6](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/024d6b6af467ec16715a49438885ece7f0a911d1))
|
|
20
|
+
|
|
21
|
+
## [1.2.0](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.3...v1.2.0) (2022-03-23)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- deploy parity ([#219](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/219)) ([9a3a1ce](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/9a3a1cedd58c2ac39de5770998d30bc33cb63c66)), closes [#221](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/221) [#223](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/223)
|
|
26
|
+
|
|
5
27
|
### [1.1.3](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.2...v1.1.3) (2022-03-16)
|
|
6
28
|
|
|
7
29
|
### [1.1.2](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v1.1.1...v1.1.2) (2022-03-16)
|
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
$ sf deploy --interactive
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.1
|
|
111
|
+
_See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v1.2.1/src/commands/deploy.ts)_
|
|
112
112
|
|
|
113
113
|
## `sf deploy metadata`
|
|
114
114
|
|
|
@@ -116,17 +116,24 @@ Deploy metadata in source format to an org from your local project.
|
|
|
116
116
|
|
|
117
117
|
```
|
|
118
118
|
USAGE
|
|
119
|
-
$ sf deploy metadata [--json] [-
|
|
120
|
-
NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <value>]
|
|
119
|
+
$ sf deploy metadata [--json] [-a <value>] [--dry-run] [-r] [-g] [-x <value>] [-m <value>] [-d <value>] [-o
|
|
120
|
+
<value>] [-t <value>] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [--verbose] [-w <value>]
|
|
121
121
|
|
|
122
122
|
FLAGS
|
|
123
|
+
-a, --api-version=<value> Target API version for the deploy.
|
|
123
124
|
-d, --source-dir=<value>... Path to the local source files to deploy.
|
|
125
|
+
-g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
|
|
124
126
|
-l, --test-level=<option> [default: NoTestRun] Deployment Apex testing level.
|
|
125
127
|
<options: NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg>
|
|
126
128
|
-m, --metadata=<value>... Metadata component names to deploy.
|
|
127
129
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
128
|
-
-
|
|
130
|
+
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
131
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
132
|
+
-w, --wait=<minutes> [default: 33 minutes] Number of minutes to wait for command to complete and display
|
|
133
|
+
results.
|
|
129
134
|
-x, --manifest=<value> Full file path for manifest (package.xml) of components to deploy.
|
|
135
|
+
--dry-run Validate deploy and run Apex tests but don’t save to the org.
|
|
136
|
+
--verbose Show verbose output of the deploy result.
|
|
130
137
|
|
|
131
138
|
GLOBAL FLAGS
|
|
132
139
|
--json Format output as json.
|
|
@@ -182,6 +189,11 @@ EXAMPLES
|
|
|
182
189
|
$ sf deploy metadata --metadata ApexClass --test-level RunLocalTests
|
|
183
190
|
|
|
184
191
|
FLAG DESCRIPTIONS
|
|
192
|
+
-a, --api-version=<value> Target API version for the deploy.
|
|
193
|
+
|
|
194
|
+
Use this flag to override the default API version, which is the latest version supported the CLI, with the API
|
|
195
|
+
version of your package.xml file.
|
|
196
|
+
|
|
185
197
|
-d, --source-dir=<value>... Path to the local source files to deploy.
|
|
186
198
|
|
|
187
199
|
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
|
|
@@ -189,6 +201,11 @@ FLAG DESCRIPTIONS
|
|
|
189
201
|
|
|
190
202
|
If you specify this flag, don’t specify --metadata or --manifest.
|
|
191
203
|
|
|
204
|
+
-g, --ignore-warnings Ignore warnings and allow a deployment to complete successfully.
|
|
205
|
+
|
|
206
|
+
If a warning occurs and this flag is set to true, the success status of the deployment is set to true. When this
|
|
207
|
+
flag is set to false, success is set to false, and the warning is treated like an error.
|
|
208
|
+
|
|
192
209
|
-l, --test-level=NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg Deployment Apex testing level.
|
|
193
210
|
|
|
194
211
|
Valid values are:
|
|
@@ -215,7 +232,18 @@ FLAG DESCRIPTIONS
|
|
|
215
232
|
|
|
216
233
|
Overrides your default org.
|
|
217
234
|
|
|
218
|
-
-
|
|
235
|
+
-r, --ignore-errors Ignore any errors and don’t roll back deployment.
|
|
236
|
+
|
|
237
|
+
When deploying to a production org, keep this flag set to false (default value). When set to true, components
|
|
238
|
+
without errors are deployed and components with errors are skipped, and could result in an inconsistent production
|
|
239
|
+
org.
|
|
240
|
+
|
|
241
|
+
-t, --tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
242
|
+
|
|
243
|
+
Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test contains a
|
|
244
|
+
space.
|
|
245
|
+
|
|
246
|
+
-w, --wait=<minutes> Number of minutes to wait for command to complete and display results.
|
|
219
247
|
|
|
220
248
|
If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
|
|
221
249
|
|
|
@@ -239,8 +267,8 @@ FLAGS
|
|
|
239
267
|
-m, --metadata=<value>... Metadata component names to retrieve.
|
|
240
268
|
-n, --package-name=<value>... Package names to retrieve.
|
|
241
269
|
-o, --target-org=<value> Login username or alias for the target org.
|
|
242
|
-
-w, --wait=<value> [default: 33] Number of minutes to wait for the command to complete and display
|
|
243
|
-
to the terminal window.
|
|
270
|
+
-w, --wait=<value> [default: 33 minutes] Number of minutes to wait for the command to complete and display
|
|
271
|
+
results to the terminal window.
|
|
244
272
|
-x, --manifest=<value> File path for the manifest (package.xml) that specifies the components to retrieve.
|
|
245
273
|
|
|
246
274
|
GLOBAL FLAGS
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { FileResponse } from '@
|
|
1
|
+
import { FileResponse } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
|
|
4
|
-
passing: number;
|
|
5
|
-
failing: number;
|
|
6
|
-
total: number;
|
|
7
|
-
time?: number;
|
|
8
|
-
};
|
|
3
|
+
import { TestLevel, TestResults } from '../../utils/types';
|
|
9
4
|
export declare type DeployMetadataResult = {
|
|
10
5
|
files: FileResponse[];
|
|
6
|
+
jobId: string;
|
|
11
7
|
tests?: TestResults;
|
|
12
8
|
};
|
|
13
9
|
export default class DeployMetadata extends SfCommand<DeployMetadataResult> {
|
|
14
10
|
static readonly description: string;
|
|
15
11
|
static readonly summary: string;
|
|
16
12
|
static readonly examples: string[];
|
|
13
|
+
static readonly requiresProject = true;
|
|
14
|
+
static readonly state = "beta";
|
|
17
15
|
static flags: {
|
|
18
|
-
|
|
16
|
+
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
17
|
+
'dry-run': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
'ignore-errors': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
+
'ignore-warnings': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
20
|
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
21
|
+
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
20
22
|
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
21
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
24
|
+
tests: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
25
|
+
'test-level': import("@oclif/core/lib/interfaces").OptionFlag<TestLevel>;
|
|
26
|
+
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
27
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration>;
|
|
24
28
|
};
|
|
25
29
|
static configurationVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
26
30
|
static envVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
27
31
|
run(): Promise<DeployMetadataResult>;
|
|
28
32
|
private setExitCode;
|
|
29
|
-
private getTestResults;
|
|
30
33
|
}
|
|
@@ -1,123 +1,132 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
3
|
/*
|
|
3
4
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
5
|
* All rights reserved.
|
|
5
6
|
* Licensed under the BSD 3-Clause license.
|
|
6
7
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const core_1 = require("@oclif/core");
|
|
11
|
-
const core_2 = require("@salesforce/core");
|
|
12
|
-
const kit_1 = require("@salesforce/kit");
|
|
13
|
-
const ts_types_1 = require("@salesforce/ts-types");
|
|
14
|
-
const types_1 = require("@sf/sdr/lib/src/client/types");
|
|
9
|
+
const core_1 = require("@salesforce/core");
|
|
10
|
+
const source_deploy_retrieve_1 = require("@salesforce/source-deploy-retrieve");
|
|
15
11
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
16
|
-
const orgs_1 = require("../../utils/orgs");
|
|
17
|
-
const componentSetBuilder_1 = require("../../utils/componentSetBuilder");
|
|
18
12
|
const output_1 = require("../../utils/output");
|
|
19
|
-
const testLevel_1 = require("../../utils/testLevel");
|
|
20
13
|
const progressBar_1 = require("../../utils/progressBar");
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const messages =
|
|
25
|
-
// One of these flags must be specified for a valid deploy.
|
|
26
|
-
const requiredFlags = ['manifest', 'metadata', 'source-dir'];
|
|
14
|
+
const types_1 = require("../../utils/types");
|
|
15
|
+
const deploy_1 = require("../../utils/deploy");
|
|
16
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy.metadata');
|
|
27
18
|
class DeployMetadata extends sf_plugins_core_1.SfCommand {
|
|
28
19
|
async run() {
|
|
29
|
-
const flags =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}),
|
|
39
|
-
metadata: flags.metadata && {
|
|
40
|
-
metadataEntries: flags.metadata,
|
|
41
|
-
directoryPaths: await (0, orgs_1.getPackageDirs)(),
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
const targetOrg = await (0, orgs_1.resolveTargetOrg)(flags['target-org']);
|
|
45
|
-
this.log(`${os_1.EOL}${messages.getMessage('deploy.metadata.api', [targetOrg, (0, config_1.resolveRestDeploy)()])}${os_1.EOL}`);
|
|
46
|
-
const deploy = await componentSet.deploy({
|
|
47
|
-
usernameOrConnection: targetOrg,
|
|
48
|
-
apiOptions: { testLevel },
|
|
20
|
+
const { flags } = await this.parse(DeployMetadata);
|
|
21
|
+
if (!(0, deploy_1.validateTests)(flags['test-level'], flags.tests)) {
|
|
22
|
+
throw messages.createError('error.NoTestsSpecified');
|
|
23
|
+
}
|
|
24
|
+
const api = (0, deploy_1.resolveRestDeploy)();
|
|
25
|
+
const { deploy, componentSet } = await (0, deploy_1.executeDeploy)({
|
|
26
|
+
...flags,
|
|
27
|
+
'target-org': flags['target-org'].getUsername(),
|
|
28
|
+
api,
|
|
49
29
|
});
|
|
30
|
+
const action = flags['dry-run'] ? 'Deploying (dry-run)' : 'Deploying';
|
|
31
|
+
this.log((0, output_1.getVersionMessage)(action, componentSet, api));
|
|
32
|
+
this.log(`Deploy ID: ${deploy.id}`);
|
|
50
33
|
new progressBar_1.DeployProgress(deploy, this.jsonEnabled()).start();
|
|
51
|
-
const result = await deploy.pollStatus(500,
|
|
34
|
+
const result = await deploy.pollStatus(500, flags.wait.seconds);
|
|
52
35
|
this.setExitCode(result);
|
|
53
36
|
if (!this.jsonEnabled()) {
|
|
54
|
-
(0, output_1.
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
(0, output_1.displayDeployResults)(result, flags['test-level'], flags.verbose);
|
|
38
|
+
if (flags['dry-run'])
|
|
39
|
+
this.log('Dry-run complete.');
|
|
57
40
|
}
|
|
58
41
|
return {
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
jobId: result.response.id,
|
|
43
|
+
files: result.getFileResponses() || [],
|
|
44
|
+
tests: (0, deploy_1.getTestResults)(result),
|
|
61
45
|
};
|
|
62
46
|
}
|
|
63
47
|
setExitCode(result) {
|
|
64
|
-
|
|
65
|
-
if (status !== types_1.RequestStatus.Succeeded) {
|
|
48
|
+
if (result.response.status !== source_deploy_retrieve_1.RequestStatus.Succeeded) {
|
|
66
49
|
process.exitCode = 1;
|
|
67
50
|
}
|
|
68
51
|
}
|
|
69
|
-
getTestResults(result) {
|
|
70
|
-
const passing = (0, ts_types_1.get)(result, 'response.numberTestsCompleted', 0);
|
|
71
|
-
const failing = (0, ts_types_1.get)(result, 'response.numberTestErrors', 0);
|
|
72
|
-
const total = (0, ts_types_1.get)(result, 'response.numberTestsTotal', 0);
|
|
73
|
-
const testResults = { passing, failing, total };
|
|
74
|
-
const time = (0, ts_types_1.get)(result, 'response.details.runTestResult.totalTime', 0);
|
|
75
|
-
return time ? { ...testResults, time } : testResults;
|
|
76
|
-
}
|
|
77
52
|
}
|
|
78
53
|
exports.default = DeployMetadata;
|
|
79
54
|
DeployMetadata.description = messages.getMessage('description');
|
|
80
55
|
DeployMetadata.summary = messages.getMessage('summary');
|
|
81
56
|
DeployMetadata.examples = messages.getMessages('examples');
|
|
57
|
+
DeployMetadata.requiresProject = true;
|
|
58
|
+
DeployMetadata.state = 'beta';
|
|
82
59
|
DeployMetadata.flags = {
|
|
83
|
-
|
|
84
|
-
char: '
|
|
85
|
-
summary: messages.getMessage('flags.
|
|
86
|
-
|
|
87
|
-
|
|
60
|
+
'api-version': sf_plugins_core_1.Flags.orgApiVersion({
|
|
61
|
+
char: 'a',
|
|
62
|
+
summary: messages.getMessage('flags.api-version.summary'),
|
|
63
|
+
description: messages.getMessage('flags.api-version.description'),
|
|
64
|
+
}),
|
|
65
|
+
'dry-run': sf_plugins_core_1.Flags.boolean({
|
|
66
|
+
summary: messages.getMessage('flags.dry-run.summary'),
|
|
67
|
+
default: false,
|
|
88
68
|
}),
|
|
89
|
-
|
|
69
|
+
'ignore-errors': sf_plugins_core_1.Flags.boolean({
|
|
70
|
+
char: 'r',
|
|
71
|
+
summary: messages.getMessage('flags.ignore-errors.summary'),
|
|
72
|
+
description: messages.getMessage('flags.ignore-errors.description'),
|
|
73
|
+
default: false,
|
|
74
|
+
}),
|
|
75
|
+
'ignore-warnings': sf_plugins_core_1.Flags.boolean({
|
|
76
|
+
char: 'g',
|
|
77
|
+
summary: messages.getMessage('flags.ignore-warnings.summary'),
|
|
78
|
+
description: messages.getMessage('flags.ignore-warnings.description'),
|
|
79
|
+
default: false,
|
|
80
|
+
}),
|
|
81
|
+
manifest: sf_plugins_core_1.Flags.file({
|
|
90
82
|
char: 'x',
|
|
91
83
|
description: messages.getMessage('flags.manifest.description'),
|
|
92
84
|
summary: messages.getMessage('flags.manifest.summary'),
|
|
93
|
-
|
|
85
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
86
|
+
exists: true,
|
|
94
87
|
}),
|
|
95
|
-
|
|
88
|
+
metadata: sf_plugins_core_1.Flags.string({
|
|
89
|
+
char: 'm',
|
|
90
|
+
summary: messages.getMessage('flags.metadata.summary'),
|
|
91
|
+
multiple: true,
|
|
92
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
93
|
+
}),
|
|
94
|
+
'source-dir': sf_plugins_core_1.Flags.string({
|
|
96
95
|
char: 'd',
|
|
97
96
|
description: messages.getMessage('flags.source-dir.description'),
|
|
98
97
|
summary: messages.getMessage('flags.source-dir.summary'),
|
|
99
98
|
multiple: true,
|
|
100
|
-
|
|
99
|
+
exactlyOne: ['manifest', 'source-dir', 'metadata'],
|
|
101
100
|
}),
|
|
102
|
-
'target-org':
|
|
101
|
+
'target-org': sf_plugins_core_1.Flags.requiredOrg({
|
|
103
102
|
char: 'o',
|
|
104
103
|
description: messages.getMessage('flags.target-org.description'),
|
|
105
104
|
summary: messages.getMessage('flags.target-org.summary'),
|
|
106
105
|
}),
|
|
107
|
-
|
|
108
|
-
char: '
|
|
106
|
+
tests: sf_plugins_core_1.Flags.string({
|
|
107
|
+
char: 't',
|
|
108
|
+
multiple: true,
|
|
109
|
+
summary: messages.getMessage('flags.tests.summary'),
|
|
110
|
+
description: messages.getMessage('flags.tests.description'),
|
|
111
|
+
}),
|
|
112
|
+
'test-level': (0, deploy_1.testLevelFlag)({
|
|
113
|
+
default: types_1.TestLevel.NoTestRun,
|
|
109
114
|
description: messages.getMessage('flags.test-level.description'),
|
|
110
115
|
summary: messages.getMessage('flags.test-level.summary'),
|
|
111
|
-
options: Object.values(testLevel_1.TestLevel),
|
|
112
|
-
default: testLevel_1.TestLevel.NoTestRun,
|
|
113
116
|
}),
|
|
114
|
-
|
|
117
|
+
verbose: sf_plugins_core_1.Flags.boolean({
|
|
118
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
119
|
+
}),
|
|
120
|
+
wait: sf_plugins_core_1.Flags.duration({
|
|
115
121
|
char: 'w',
|
|
116
122
|
summary: messages.getMessage('flags.wait.summary'),
|
|
117
123
|
description: messages.getMessage('flags.wait.description'),
|
|
118
|
-
|
|
124
|
+
unit: 'minutes',
|
|
125
|
+
defaultValue: 33,
|
|
126
|
+
helpValue: '<minutes>',
|
|
127
|
+
min: 1,
|
|
119
128
|
}),
|
|
120
129
|
};
|
|
121
|
-
DeployMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES',
|
|
122
|
-
DeployMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES',
|
|
130
|
+
DeployMetadata.configurationVariablesSection = (0, sf_plugins_core_1.toHelpSection)('CONFIGURATION VARIABLES', core_1.OrgConfigProperties.TARGET_ORG, core_1.SfdxPropertyKeys.API_VERSION);
|
|
131
|
+
DeployMetadata.envVariablesSection = (0, sf_plugins_core_1.toHelpSection)('ENVIRONMENT VARIABLES', core_1.EnvironmentVariable.SF_TARGET_ORG, core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR);
|
|
123
132
|
//# sourceMappingURL=metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/commands/deploy/metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/commands/deploy/metadata.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAAwG;AACxG,+EAA+F;AAC/F,iEAA8E;AAC9E,+CAA6E;AAC7E,yDAAyD;AACzD,6CAA2D;AAC3D,+CAAoH;AAEpH,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,iBAAiB,CAAC,CAAC;AAQhG,MAAqB,cAAe,SAAQ,2BAA+B;IA2FlE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,IAAA,sBAAa,EAAC,KAAK,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;YACpD,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;SACtD;QACD,MAAM,GAAG,GAAG,IAAA,0BAAiB,GAAE,CAAC;QAChC,MAAM,EAAE,MAAM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0BAA0B,CAAC;KACzD,CAAC;IACF,OAAO,EAAE,uBAAK,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KACtD,CAAC;IACF,IAAI,EAAE,uBAAK,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;QAC1D,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,WAAW;QACtB,GAAG,EAAE,CAAC;KACP,CAAC;CACH,CAAC;AAEY,4CAA6B,GAAG,IAAA,+BAAa,EACzD,yBAAyB,EACzB,0BAAmB,CAAC,UAAU,EAC9B,uBAAgB,CAAC,WAAW,CAC7B,CAAC;AAEY,kCAAmB,GAAG,IAAA,+BAAa,EAC/C,uBAAuB,EACvB,0BAAmB,CAAC,aAAa,EACjC,0BAAmB,CAAC,mBAAmB,CACxC,CAAC"}
|
package/lib/commands/deploy.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Hook } from '@oclif/core';
|
|
1
2
|
import { Deployer, SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
3
|
export declare const DEPLOY_OPTIONS_FILE = "deploy-options.json";
|
|
3
4
|
export default class Deploy extends SfCommand<void> {
|
|
@@ -19,4 +20,5 @@ export default class Deploy extends SfCommand<void> {
|
|
|
19
20
|
shouldCommit(): Promise<boolean>;
|
|
20
21
|
askToSave(): Promise<boolean>;
|
|
21
22
|
selectDeployers(deployers: Deployer[]): Promise<Deployer[]>;
|
|
23
|
+
checkForHookFailures(hookResults: Hook.Result<Deployer[]>): void;
|
|
22
24
|
}
|
package/lib/commands/deploy.js
CHANGED
|
@@ -29,6 +29,7 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
29
29
|
this.log(`Using options found in ${exports.DEPLOY_OPTIONS_FILE}`);
|
|
30
30
|
}
|
|
31
31
|
const hookResults = await sf_plugins_core_1.SfHook.run(this.config, 'sf:deploy', options);
|
|
32
|
+
this.checkForHookFailures(hookResults);
|
|
32
33
|
let deployers = hookResults.successes.flatMap((s) => s.result);
|
|
33
34
|
if (deployers.length === 0) {
|
|
34
35
|
this.log('Found nothing in the project to deploy');
|
|
@@ -137,6 +138,24 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
137
138
|
}
|
|
138
139
|
return final;
|
|
139
140
|
}
|
|
141
|
+
checkForHookFailures(hookResults) {
|
|
142
|
+
var _a;
|
|
143
|
+
if ((_a = hookResults.failures) === null || _a === void 0 ? void 0 : _a.length) {
|
|
144
|
+
// display a table of the errors encountered; Plugin Name, Error Message
|
|
145
|
+
const columns = {
|
|
146
|
+
errorName: { header: 'Error Name' },
|
|
147
|
+
errorMessage: { header: 'Error Message' },
|
|
148
|
+
};
|
|
149
|
+
const failureData = hookResults.failures.map((failure) => {
|
|
150
|
+
return { errorName: failure.error.name, errorMessage: failure.error.message };
|
|
151
|
+
});
|
|
152
|
+
this.styledHeader(messages.getMessage('error.initialization.title'));
|
|
153
|
+
this.table(failureData, columns);
|
|
154
|
+
const err = messages.createError('error.initialization');
|
|
155
|
+
err.data = hookResults.failures;
|
|
156
|
+
throw err;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
140
159
|
}
|
|
141
160
|
exports.default = Deploy;
|
|
142
161
|
Deploy.summary = messages.getMessage('summary');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2BAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2BAAyB;AACzB,sCAA0C;AAC1C,2CAA4C;AAC5C,uCAAsE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,CAAC;YACzD,GAAG,CAAC,IAAI,GAAG,WAAW,CAAC,QAAQ,CAAC;YAChC,MAAM,GAAG,CAAC;SACX;IACH,CAAC;;AAlKH,yBAmKC;AAlKe,cAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,eAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC5C,qBAAc,GAAG,KAAK,CAAC;AAEvB,YAAK,GAAG;IACpB,WAAW,EAAE,YAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1D,CAAC;CACH,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { FileResponse, RetrieveResult } from '@
|
|
1
|
+
import { FileResponse, RetrieveResult } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
3
|
export declare type RetrieveMetadataResult = FileResponse[];
|
|
4
4
|
export default class RetrieveMetadata extends SfCommand<RetrieveMetadataResult> {
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
|
+
static readonly requiresProject = true;
|
|
9
|
+
static readonly state = "beta";
|
|
8
10
|
static flags: {
|
|
9
11
|
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
10
12
|
manifest: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
13
|
metadata: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
12
14
|
'package-name': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
13
15
|
'source-dir': import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
14
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<
|
|
15
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<
|
|
16
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org>;
|
|
17
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/kit").Duration>;
|
|
16
18
|
};
|
|
17
19
|
static configurationVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|
|
18
20
|
static envVariablesSection: import("@salesforce/sf-plugins-core/lib/util").HelpSection;
|