@salesforce/plugin-devops-center 0.1.0-beta.3 → 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.
Files changed (46) hide show
  1. package/README.md +23 -22
  2. package/lib/commands/{deploy → project/deploy}/pipeline/report.d.ts +2 -2
  3. package/lib/commands/{deploy → project/deploy}/pipeline/report.js +2 -2
  4. package/lib/commands/project/deploy/pipeline/report.js.map +1 -0
  5. package/lib/commands/{deploy → project/deploy}/pipeline/resume.d.ts +2 -3
  6. package/lib/commands/{deploy → project/deploy}/pipeline/resume.js +2 -3
  7. package/lib/commands/project/deploy/pipeline/resume.js.map +1 -0
  8. package/lib/commands/{deploy/pipeline.d.ts → project/deploy/pipeline/start.d.ts} +3 -3
  9. package/lib/commands/{deploy/pipeline.js → project/deploy/pipeline/start.js} +5 -5
  10. package/lib/commands/project/deploy/pipeline/start.js.map +1 -0
  11. package/lib/common/base/abstractPromote.js +5 -2
  12. package/lib/common/base/abstractPromote.js.map +1 -1
  13. package/lib/common/base/abstractResume.d.ts +0 -1
  14. package/lib/common/base/abstractResume.js +5 -2
  15. package/lib/common/base/abstractResume.js.map +1 -1
  16. package/lib/common/flags/flags.d.ts +5 -0
  17. package/lib/common/flags/flags.js +14 -6
  18. package/lib/common/flags/flags.js.map +1 -1
  19. package/lib/common/outputColumns.js +1 -1
  20. package/lib/common/outputColumns.js.map +1 -1
  21. package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
  22. package/lib/common/outputService/deploySummaryBuilder.js +6 -8
  23. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
  24. package/lib/common/outputService/reportOutputService.js +1 -1
  25. package/lib/common/outputService/reportOutputService.js.map +1 -1
  26. package/lib/common/selectors/deployProgressSummarySelector.js +1 -1
  27. package/lib/common/selectors/environmentSelector.d.ts +1 -1
  28. package/lib/common/selectors/environmentSelector.js +1 -1
  29. package/lib/common/types.d.ts +1 -0
  30. package/lib/common/types.js.map +1 -1
  31. package/lib/common/utils.js +3 -3
  32. package/lib/common/utils.js.map +1 -1
  33. package/messages/commonFlags.md +4 -4
  34. package/messages/deploy.output.md +2 -2
  35. package/messages/{deploy.pipeline.resume.md → project.deploy.pipeline.resume.md} +0 -4
  36. package/messages/promoteFlags.md +1 -1
  37. package/oclif.manifest.json +121 -121
  38. package/package.json +17 -12
  39. package/lib/commands/deploy/pipeline/report.js.map +0 -1
  40. package/lib/commands/deploy/pipeline/resume.js.map +0 -1
  41. package/lib/commands/deploy/pipeline.js.map +0 -1
  42. /package/messages/{deploy.pipeline.report.md → project.deploy.pipeline.report.md} +0 -0
  43. /package/messages/{deploy.pipeline.md → project.deploy.pipeline.start.md} +0 -0
  44. /package/schemas/{deploy-pipeline-report.json → project-deploy-pipeline-report.json} +0 -0
  45. /package/schemas/{deploy-pipeline-resume.json → project-deploy-pipeline-resume.json} +0 -0
  46. /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 resume report".
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 '../../../common';
3
- import { ReportOnPromoteCommand } from '../../../common/base/abstractReportOnPromote';
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("../../../common/base/abstractReportOnPromote");
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 '../../../common';
3
- import { ResumeCommand } from '../../../common/base/abstractResume';
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("../../../common/base/abstractResume");
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 '../../common/base/abstractPromote';
3
- import { PromoteOptions, PromotePipelineResult } from '../../common';
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("../../common/base/abstractPromote");
11
- const constants_1 = require("../../common/constants");
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=pipeline.js.map
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.includes('GenericTimeoutError')) {
131
- const err = messages.createError('error.ClientTimeout', [this.config.bin, this.id]);
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;IA0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,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;YACnE,sEAAsE;YACtE,GAAG,IAAI,CAAC,iBAAiB,EAAE;SAC5B,CAAC;IACJ,CAAC;;AAlLH,wCAiMC;AAhMC,gFAAgF;AAClE,wBAAS,GAAG;IACxB,aAAa,EAAE,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"}
@@ -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.includes('GenericTimeoutError')) {
76
- const err = messages.createError('error.ClientTimeout', [this.config.bin, this.baseCommand]);
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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UAAU,CAAC,CAAC;QAChF,OAAO;YACL,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,QAAQ,CAAC,oBAAoB;YACrC,OAAO,EAAE,QAAQ,CAAC,qBAAqB;YACvC,YAAY,EAAE,QAAQ,CAAC,2BAA2B;SACnD,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACO,KAAK,CAAC,KAAsB;QACpC,IAAI,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE;YAC/C,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,qBAAqB,EAAE;gBACtD,IAAI,CAAC,MAAM,CAAC,GAAG;gBACf,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;aAC3C,CAAC,CAAC;YACH,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;SACxF;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;;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 () => (await getOrgOrThrow())?.getUsername(),
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 aggregator = await core_1.ConfigAggregator.create({ customConfigMeta: configMeta_1.default });
77
- const alias = input ? input : aggregator.getInfo(configMeta_1.ConfigVars.TARGET_DEVOPS_CENTER)?.value?.toString();
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: alias });
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/common/flags/flags.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAmE;AACnE,yCAA2C;AAC3C,iEAAoD;AACpD,sCAAkD;AAElD,iDAA0D;AAE1D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,aAAa,CAAC,CAAC;AAE7E,QAAA,uBAAuB,GAAuB,uBAAK,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0CAA0C,CAAC;IACxE,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,IAAI,GAAyB,uBAAK,CAAC,QAAQ,CAAC;IACvD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAC1D,YAAY,EAAE,EAAE;IAChB,OAAO,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iB,EAAE,QAAQ,CAAC;CAC1C,CAAC,CAAC;AAEU,QAAA,OAAO,GAAyB,uBAAK,CAAC,OAAO,CAAC;IACzD,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;CACtD,CAAC,CAAC;AAEU,QAAA,OAAO,GAAyB,uBAAK,CAAC,OAAO,CAAC;IACzD,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;IACrD,SAAS,EAAE,CAAC,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH;;;GAGG;AACI,MAAM,mCAAmC,GAAG,KAAK,IAAiC,EAAE;IACzF,MAAM,MAAM,GAAG,MAAM,uBAAgB,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,oBAAU,EAAE,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,OAAO,CAAC,uBAAU,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC5E,CAAC,CAAC;AAHW,QAAA,mCAAmC,uCAG9C;AAEF;;;;;GAKG;AACH,MAAM,aAAa,GAAG,KAAK,EAAE,KAAc,EAAgB,EAAE;IAC3D,MAAM,eAAe,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,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,iBAAiB,CAAC,CAAC;AAEtF,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"}
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 orgUrl: string;
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.orgUrl]));
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
- const namedCredential = this.workItemsPromote[0].sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.sf_devops__Named_Credential__c;
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.orgUrl,
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
- const namedCredential = envQueryResp.sf_devops__Named_Credential__c;
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.orgUrl,
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,kFAAmF;AACnF,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;QAElG,QAAQ,SAAS,CAAC,uBAAuB,EAAE;YACzC,KAAK,8BAAkB,CAAC,cAAc;gBACpC,OAAO,IAAI,+BAA+B,CACxC,SAAS,CAAC,gCAAiC,CAAC,OAAO,EACnD,IAAI,CAAC,GAAG,EACR,MAAM,EACN,KAAK,CACN,CAAC;YAEJ,KAAK,8BAAkB,CAAC,iBAAiB;gBACvC,OAAO,IAAI,mCAAmC,CAC5C,SAAS,CAAC,oCAAqC,CAAC,OAAO,EACvD,IAAI,CAAC,GAAG,EACR,MAAM,EACN,KAAK,CACN,CAAC;YAEJ,KAAK,8BAAkB,CAAC,YAAY;gBAClC,OAAO,IAAI,8BAA8B,CACvC,SAAS,CAAC,oCAAqC,CAAC,OAAO,EACvD,SAAS,CAAC,wBAAyB,CAAC,OAAO,EAC3C,IAAI,CAAC,GAAG,EACR,MAAM,EACN,KAAK,CACN,CAA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E,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"}
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;QAElG,QAAQ,SAAS,CAAC,uBAAuB,EAAE;YACzC,KAAK,8BAAkB,CAAC,cAAc;gBACpC,OAAO,IAAI,+BAA+B,CACxC,SAAS,CAAC,gCAAiC,CAAC,OAAO,EACnD,IAAI,CAAC,GAAG,EACR,MAAM,EACN,KAAK,CACN,CAAC;YAEJ,KAAK,8BAAkB,CAAC,iBAAiB;gBACvC,OAAO,IAAI,mCAAmC,CAC5C,SAAS,CAAC,oCAAqC,CAAC,OAAO,EACvD,IAAI,CAAC,GAAG,EACR,MAAM,EACN,KAAK,CACN,CAAC;YAEJ,K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AY,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,wBAAwB,CAAC,CAAC;AAOrG;;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,CAA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,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"}
@@ -13,7 +13,7 @@ const selectorUtils_1 = require("./selectorUtils");
13
13
  */
14
14
  async function selectDeployAORSummaryDataById(con, aorId) {
15
15
  const queryStr = `SELECT Id, sf_devops__Operation__c,
16
- (SELECT sf_devops__Pipeline_Stage__r.Name, sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.sf_devops__Named_Credential__c, sf_devops__Work_Item__r.Name FROM sf_devops__Work_Item_Promotes__r),
16
+ (SELECT sf_devops__Pipeline_Stage__r.Name, sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.sf_devops__Named_Credential__c, sf_devops__Pipeline_Stage__r.sf_devops__Environment__r.Name, sf_devops__Work_Item__r.Name FROM sf_devops__Work_Item_Promotes__r),
17
17
  (SELECT sf_devops__Change_Bundle__r.Id, sf_devops__Change_Bundle__r.sf_devops__Version_Name__c, sf_devops__Environment__r.Id FROM sf_devops__Change_Bundle_Installs__r),
18
18
  (SELECT Name FROM sf_devops__Work_Items__r)
19
19
  FROM sf_devops__Async_Operation_Result__c
@@ -2,7 +2,7 @@ import { QueryResult } from 'jsforce';
2
2
  import { Connection } from '@salesforce/core';
3
3
  import { PipelineStage } from '../types';
4
4
  export type EnvQueryResult = {
5
- sf_devops__Named_Credential__c: string;
5
+ Name: string;
6
6
  sf_devops__Pipeline_Stages__r: QueryResult<PipelineStage>;
7
7
  };
8
8
  /**
@@ -12,7 +12,7 @@ const selectorUtils_1 = require("./selectorUtils");
12
12
  * Returns the named credential and pipeline stage name associated with the envId sent
13
13
  */
14
14
  async function selectPipelineStageByEnvironment(con, envId) {
15
- const queryStr = `SELECT sf_devops__Named_Credential__c,
15
+ const queryStr = `SELECT Name,
16
16
  (SELECT Name FROM sf_devops__Pipeline_Stages__r)
17
17
  FROM sf_devops__Environment__c
18
18
  WHERE Id = '${envId}'`;
@@ -40,6 +40,7 @@ export type WorkItemPromote = {
40
40
  };
41
41
  export type Environment = {
42
42
  Id: string;
43
+ Name: string;
43
44
  sf_devops__Named_Credential__c: string;
44
45
  };
45
46
  export type ChangeBundleInstall = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA8BH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAiED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,kDAA0B,CAAA;AAC5B,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/common/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA8BH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAkED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,kDAA0B,CAAA;AAC5B,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B"}
@@ -54,11 +54,11 @@ async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName)
54
54
  if (error.name === 'Query-failedError') {
55
55
  throw messages.createError('error.DevopsAppNotInstalled');
56
56
  }
57
+ else if (error.name === 'No-results-foundError') {
58
+ throw messages.createError('error.ProjectNotFound', [projectName]);
59
+ }
57
60
  throw err;
58
61
  }
59
- if (!stages.length) {
60
- throw messages.createError('error.ProjectNotFound', [projectName]);
61
- }
62
62
  // find stage by branch name
63
63
  const stage = stages.find((s) => s.sf_devops__Branch__r.sf_devops__Name__c.toUpperCase() === branchName.toUpperCase());
64
64
  if (!stage) {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/common/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA6D;AAG7D,sCAAqD;AACrD,qFAA0F;AAC1F,wEAAoE;AACpE,6DAA0D;AAE1D,6FAA2F;AAE3F,mFAAyF;AAEzF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAE3F;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAAC,SAA8B,EAAE,KAAyB;IACzF,IAAI,SAAS,KAAK,kBAAS,CAAC,iBAAiB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3E,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;KACtD;SAAM,IAAI,SAAS,KAAK,kBAAS,CAAC,iBAAiB,IAAI,KAAK,EAAE;QAC7D,MAAM,QAAQ,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;KACrD;AACH,CAAC;AAND,8CAMC;AAED;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,6BAA6B,CACjD,SAAc,EACd,WAAmB,EACnB,UAAkB;IAElB,IAAI,MAAuB,CAAC;IAC5B,IAAI;QACF,MAAM,GAAG,MAAM,IAAA,qDAA6B,EAAC,SAAS,CAAC,a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C,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAClF,CAAC;AAFD,0CAEC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,sCAAsC,CAC1D,GAAe,EACf,SAAiB;IAEjB,MAAM,UAAU,GAAsB,MAAM,IAAA,4DAAiC,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAE9F,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC/B,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC;AAZD,wFAYC"}
@@ -8,7 +8,7 @@ Username or alias for the DevOps Center org.
8
8
 
9
9
  # flags.wait.description
10
10
 
11
- 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 %> report".
11
+ 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".
12
12
 
13
13
  # flags.wait.summary
14
14
 
@@ -26,9 +26,9 @@ Job ID of the pipeline deploy operation you want to resume.
26
26
 
27
27
  These commands return a job ID if they time out or you specified the --async flag:
28
28
 
29
- - sf deploy pipeline
30
- - sf deploy pipeline validate
31
- - sf deploy pipeline quick
29
+ - sf project deploy pipeline start
30
+ - sf project deploy pipeline validate
31
+ - sf project deploy pipeline quick
32
32
 
33
33
  The job ID is valid for 10 days from when you started the deploy operation.
34
34
 
@@ -1,8 +1,8 @@
1
1
  # output.async-run-info
2
2
 
3
3
  Deploy has been queued.
4
- Run "sf deploy pipeline resume --job-id %s to resume watching the deploy.
5
- Run "sf deploy pipeline report --job-id %s to get the latest status.
4
+ Run "sf project deploy pipeline resume --job-id %s to resume watching the deploy.
5
+ Run "sf project deploy pipeline report --job-id %s to get the latest status.
6
6
 
7
7
  # output.item
8
8
 
@@ -17,7 +17,3 @@ Run this command by either passing it a job ID or specifying the --use-most-rece
17
17
  - Resume watching the most recent deploy operation:
18
18
 
19
19
  <%= config.bin %> <%= command.id %> --use-most-recent
20
-
21
- # error.ClientTimeout
22
-
23
- The command has timed out, although it is still running. To check the status of the deploy operation, run "sf deploy pipeline report".
@@ -46,7 +46,7 @@ If you don’t specify a test level, the default behavior depends on the content
46
46
 
47
47
  # promote.async.description
48
48
 
49
- 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 deploy pipeline resume". To check the status of the deployment, run "sf deploy pipeline report".
49
+ 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".
50
50
 
51
51
  # promote.async.summary
52
52
 
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.0-beta.3",
2
+ "version": "1.0.0-beta.1",
3
3
  "commands": {
4
- "deploy:pipeline": {
5
- "id": "deploy:pipeline",
6
- "summary": "Deploy changes from a branch to the pipeline stage’s org.",
7
- "description": "Before you run this command, changes in the branch must be merged in the source control repository.",
4
+ "project:deploy:pipeline:report": {
5
+ "id": "project:deploy:pipeline:report",
6
+ "summary": "Check the status of a pipeline deploy operation.",
7
+ "description": "Run this command by either passing it a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.",
8
8
  "strict": true,
9
9
  "pluginName": "@salesforce/plugin-devops-center",
10
10
  "pluginAlias": "@salesforce/plugin-devops-center",
@@ -12,8 +12,8 @@
12
12
  "state": "beta",
13
13
  "aliases": [],
14
14
  "examples": [
15
- "Deploy changes in the Staging branch to the Staging environment (sandbox), if the previous stage is the bundling stage:\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox --bundle-version-name 1.0",
16
- "Deploy all changes in 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"
15
+ "Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2",
16
+ "Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --use-most-recent"
17
17
  ],
18
18
  "flags": {
19
19
  "json": {
@@ -23,38 +23,6 @@
23
23
  "helpGroup": "GLOBAL",
24
24
  "allowNo": false
25
25
  },
26
- "branch-name": {
27
- "name": "branch-name",
28
- "type": "option",
29
- "char": "b",
30
- "summary": "Name of the branch in the source control repository from which to deploy changes to the stage’s org.",
31
- "required": true,
32
- "multiple": false
33
- },
34
- "bundle-version-name": {
35
- "name": "bundle-version-name",
36
- "type": "option",
37
- "char": "v",
38
- "summary": "Version name of the bundle.",
39
- "description": "You must indicate the bundle version if deploying to the environment that corresponds to the first stage after the bundling stage.",
40
- "multiple": false
41
- },
42
- "deploy-all": {
43
- "name": "deploy-all",
44
- "type": "boolean",
45
- "char": "a",
46
- "summary": "Deploy all metadata in branch.",
47
- "description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
48
- "allowNo": false
49
- },
50
- "devops-center-project-name": {
51
- "name": "devops-center-project-name",
52
- "type": "option",
53
- "char": "p",
54
- "summary": "Name of the DevOps Center project.",
55
- "required": true,
56
- "multiple": false
57
- },
58
26
  "devops-center-username": {
59
27
  "name": "devops-center-username",
60
28
  "type": "option",
@@ -63,74 +31,30 @@
63
31
  "required": true,
64
32
  "multiple": false
65
33
  },
66
- "tests": {
67
- "name": "tests",
68
- "type": "option",
69
- "char": "t",
70
- "summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
71
- "description": "Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test name contains a space.",
72
- "multiple": true
73
- },
74
- "test-level": {
75
- "name": "test-level",
76
- "type": "option",
77
- "char": "l",
78
- "summary": "Deployment Apex testing level.",
79
- "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\".",
80
- "multiple": false,
81
- "options": [
82
- "NoTestRun",
83
- "RunSpecifiedTests",
84
- "RunLocalTests",
85
- "RunAllTestsInOrg"
86
- ]
87
- },
88
- "async": {
89
- "name": "async",
90
- "type": "boolean",
91
- "summary": "Run the command asynchronously.",
92
- "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 deploy pipeline resume\". To check the status of the deployment, run \"sf deploy pipeline report\".",
93
- "allowNo": false
94
- },
95
- "wait": {
96
- "name": "wait",
34
+ "job-id": {
35
+ "name": "job-id",
97
36
  "type": "option",
98
- "char": "w",
99
- "summary": "Number of minutes to wait for command to complete and display results.",
100
- "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 %> report\".",
101
- "helpValue": "<minutes>",
102
- "multiple": false,
103
- "exclusive": [
104
- "async"
105
- ],
106
- "default": {
107
- "quantity": 33,
108
- "unit": 0
109
- }
37
+ "char": "i",
38
+ "summary": "Job ID of the pipeline deployment you want to check the status of.",
39
+ "description": "The job ID is valid for 10 days from when you started the deploy operation.",
40
+ "multiple": false
110
41
  },
111
- "verbose": {
112
- "name": "verbose",
42
+ "use-most-recent": {
43
+ "name": "use-most-recent",
113
44
  "type": "boolean",
114
- "summary": "Show verbose output of the command result.",
45
+ "char": "r",
46
+ "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 a job ID.",
115
48
  "allowNo": false
116
- },
117
- "concise": {
118
- "name": "concise",
119
- "type": "boolean",
120
- "summary": "Show concise output of the command result.",
121
- "allowNo": false,
122
- "exclusive": [
123
- "verbose"
124
- ]
125
49
  }
126
50
  },
127
51
  "args": {},
128
52
  "hasDynamicHelp": true
129
53
  },
130
- "deploy:pipeline:report": {
131
- "id": "deploy:pipeline:report",
132
- "summary": "Check the status of a pipeline deploy operation.",
133
- "description": "Run this command by either passing it a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.",
54
+ "project:deploy:pipeline:resume": {
55
+ "id": "project:deploy:pipeline:resume",
56
+ "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 passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
134
58
  "strict": true,
135
59
  "pluginName": "@salesforce/plugin-devops-center",
136
60
  "pluginAlias": "@salesforce/plugin-devops-center",
@@ -138,8 +62,8 @@
138
62
  "state": "beta",
139
63
  "aliases": [],
140
64
  "examples": [
141
- "Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2",
142
- "Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --use-most-recent"
65
+ "Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
66
+ "Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
143
67
  ],
144
68
  "flags": {
145
69
  "json": {
@@ -161,8 +85,8 @@
161
85
  "name": "job-id",
162
86
  "type": "option",
163
87
  "char": "i",
164
- "summary": "Job ID of the pipeline deployment you want to check the status of.",
165
- "description": "The job ID is valid for 10 days from when you started the deploy operation.",
88
+ "summary": "Job ID of the pipeline deploy operation you want to resume.",
89
+ "description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- sf project deploy pipeline start\n- sf project deploy pipeline validate\n- sf project deploy pipeline quick\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
166
90
  "multiple": false
167
91
  },
168
92
  "use-most-recent": {
@@ -170,17 +94,33 @@
170
94
  "type": "boolean",
171
95
  "char": "r",
172
96
  "summary": "Use the job ID of the most recent deploy operation.",
173
- "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 a job ID.",
97
+ "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.",
174
98
  "allowNo": false
99
+ },
100
+ "wait": {
101
+ "name": "wait",
102
+ "type": "option",
103
+ "char": "w",
104
+ "summary": "Number of minutes to wait for command to complete and display results.",
105
+ "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\".",
106
+ "helpValue": "<minutes>",
107
+ "multiple": false,
108
+ "exclusive": [
109
+ "async"
110
+ ],
111
+ "default": {
112
+ "quantity": 33,
113
+ "unit": 0
114
+ }
175
115
  }
176
116
  },
177
117
  "args": {},
178
118
  "hasDynamicHelp": true
179
119
  },
180
- "deploy:pipeline:resume": {
181
- "id": "deploy:pipeline:resume",
182
- "summary": "Resume watching a pipeline deploy operation.",
183
- "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 passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
120
+ "project:deploy:pipeline:start": {
121
+ "id": "project:deploy:pipeline:start",
122
+ "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.",
184
124
  "strict": true,
185
125
  "pluginName": "@salesforce/plugin-devops-center",
186
126
  "pluginAlias": "@salesforce/plugin-devops-center",
@@ -188,8 +128,8 @@
188
128
  "state": "beta",
189
129
  "aliases": [],
190
130
  "examples": [
191
- "Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
192
- "Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
131
+ "Deploy changes in the Staging branch to the Staging environment (sandbox), if the previous stage is the bundling stage:\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox --bundle-version-name 1.0",
132
+ "Deploy all changes in 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"
193
133
  ],
194
134
  "flags": {
195
135
  "json": {
@@ -199,6 +139,38 @@
199
139
  "helpGroup": "GLOBAL",
200
140
  "allowNo": false
201
141
  },
142
+ "branch-name": {
143
+ "name": "branch-name",
144
+ "type": "option",
145
+ "char": "b",
146
+ "summary": "Name of the branch in the source control repository from which to deploy changes to the stage’s org.",
147
+ "required": true,
148
+ "multiple": false
149
+ },
150
+ "bundle-version-name": {
151
+ "name": "bundle-version-name",
152
+ "type": "option",
153
+ "char": "v",
154
+ "summary": "Version name of the bundle.",
155
+ "description": "You must indicate the bundle version if deploying to the environment that corresponds to the first stage after the bundling stage.",
156
+ "multiple": false
157
+ },
158
+ "deploy-all": {
159
+ "name": "deploy-all",
160
+ "type": "boolean",
161
+ "char": "a",
162
+ "summary": "Deploy all metadata in branch.",
163
+ "description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
164
+ "allowNo": false
165
+ },
166
+ "devops-center-project-name": {
167
+ "name": "devops-center-project-name",
168
+ "type": "option",
169
+ "char": "p",
170
+ "summary": "Name of the DevOps Center project.",
171
+ "required": true,
172
+ "multiple": false
173
+ },
202
174
  "devops-center-username": {
203
175
  "name": "devops-center-username",
204
176
  "type": "option",
@@ -207,20 +179,33 @@
207
179
  "required": true,
208
180
  "multiple": false
209
181
  },
210
- "job-id": {
211
- "name": "job-id",
182
+ "tests": {
183
+ "name": "tests",
212
184
  "type": "option",
213
- "char": "i",
214
- "summary": "Job ID of the pipeline deploy operation you want to resume.",
215
- "description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy pipeline\n- sf deploy pipeline validate\n- sf deploy pipeline quick\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
216
- "multiple": false
185
+ "char": "t",
186
+ "summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
187
+ "description": "Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test name contains a space.",
188
+ "multiple": true
217
189
  },
218
- "use-most-recent": {
219
- "name": "use-most-recent",
190
+ "test-level": {
191
+ "name": "test-level",
192
+ "type": "option",
193
+ "char": "l",
194
+ "summary": "Deployment Apex testing level.",
195
+ "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\".",
196
+ "multiple": false,
197
+ "options": [
198
+ "NoTestRun",
199
+ "RunSpecifiedTests",
200
+ "RunLocalTests",
201
+ "RunAllTestsInOrg"
202
+ ]
203
+ },
204
+ "async": {
205
+ "name": "async",
220
206
  "type": "boolean",
221
- "char": "r",
222
- "summary": "Use the job ID of the most recent deploy operation.",
223
- "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.",
207
+ "summary": "Run the command asynchronously.",
208
+ "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\".",
224
209
  "allowNo": false
225
210
  },
226
211
  "wait": {
@@ -228,7 +213,7 @@
228
213
  "type": "option",
229
214
  "char": "w",
230
215
  "summary": "Number of minutes to wait for command to complete and display results.",
231
- "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 %> report\".",
216
+ "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\".",
232
217
  "helpValue": "<minutes>",
233
218
  "multiple": false,
234
219
  "exclusive": [
@@ -238,6 +223,21 @@
238
223
  "quantity": 33,
239
224
  "unit": 0
240
225
  }
226
+ },
227
+ "verbose": {
228
+ "name": "verbose",
229
+ "type": "boolean",
230
+ "summary": "Show verbose output of the command result.",
231
+ "allowNo": false
232
+ },
233
+ "concise": {
234
+ "name": "concise",
235
+ "type": "boolean",
236
+ "summary": "Show concise output of the command result.",
237
+ "allowNo": false,
238
+ "exclusive": [
239
+ "verbose"
240
+ ]
241
241
  }
242
242
  },
243
243
  "args": {},
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-devops-center",
3
3
  "description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
4
- "version": "0.1.0-beta.3",
4
+ "version": "1.0.0-beta.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^2.4.0",
9
- "@salesforce/core": "^3.34.1",
9
+ "@salesforce/core": "^3.34.4",
10
10
  "@salesforce/kit": "^1.8.2",
11
- "@salesforce/sf-plugins-core": "^2.2.4",
11
+ "@salesforce/sf-plugins-core": "^2.2.5",
12
12
  "tslib": "^2"
13
13
  },
14
14
  "devDependencies": {
@@ -26,7 +26,7 @@
26
26
  "@typescript-eslint/parser": "^5.54.1",
27
27
  "chai": "^4.3.7",
28
28
  "eslint": "^8.35.0",
29
- "eslint-config-prettier": "^8.7.0",
29
+ "eslint-config-prettier": "^8.8.0",
30
30
  "eslint-config-salesforce": "^1.1.1",
31
31
  "eslint-config-salesforce-license": "^0.2.0",
32
32
  "eslint-config-salesforce-typescript": "^1.1.1",
@@ -38,7 +38,7 @@
38
38
  "mocha": "^9.2.2",
39
39
  "nyc": "^15.1.0",
40
40
  "oclif": "^3.7.0",
41
- "prettier": "^2.8.3",
41
+ "prettier": "^2.8.7",
42
42
  "pretty-quick": "^3.1.3",
43
43
  "shx": "0.3.4",
44
44
  "sinon": "10.0.0",
@@ -54,7 +54,7 @@
54
54
  "/oclif.manifest.json",
55
55
  "/schemas"
56
56
  ],
57
- "homepage": "https://github.com/salesforcecli/plugin-template-sf",
57
+ "homepage": "https://github.com/salesforcecli/plugin-devops-center",
58
58
  "keywords": [
59
59
  "force",
60
60
  "salesforce",
@@ -77,17 +77,22 @@
77
77
  "@salesforce/plugin-command-reference"
78
78
  ],
79
79
  "topics": {
80
- "deploy": {
81
- "description": "Commands to deploy artifacts to an environment.",
80
+ "project": {
81
+ "external": true,
82
82
  "subtopics": {
83
- "pipeline": {
84
- "description": "Commands to deploy metadata from a pipeline stage to a Salesforce org."
83
+ "deploy": {
84
+ "description": "Commands to deploy artifacts to an environment.",
85
+ "subtopics": {
86
+ "pipeline": {
87
+ "description": "Commands to deploy metadata from a pipeline stage to a Salesforce org."
88
+ }
89
+ }
85
90
  }
86
91
  }
87
92
  }
88
93
  }
89
94
  },
90
- "repository": "salesforcecli/plugin-template-sf",
95
+ "repository": "salesforcecli/plugin-devops-center",
91
96
  "scripts": {
92
97
  "build": "sf-build",
93
98
  "clean": "sf-clean",
@@ -112,4 +117,4 @@
112
117
  "publishConfig": {
113
118
  "access": "public"
114
119
  }
115
- }
120
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/commands/deploy/pipeline/report.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAA4C;AAC5C,iEAA+D;AAE/D,0FAAsF;AAEtF,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,wBAAwB,CAAC,CAAC;AAErG,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,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