@salesforce/plugin-devops-center 0.1.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 (135) hide show
  1. package/LICENSE.txt +12 -0
  2. package/README.md +245 -0
  3. package/lib/commands/deploy/pipeline/report.d.ts +15 -0
  4. package/lib/commands/deploy/pipeline/report.js +42 -0
  5. package/lib/commands/deploy/pipeline/report.js.map +1 -0
  6. package/lib/commands/deploy/pipeline/resume.d.ts +12 -0
  7. package/lib/commands/deploy/pipeline/resume.js +28 -0
  8. package/lib/commands/deploy/pipeline/resume.js.map +1 -0
  9. package/lib/commands/deploy/pipeline.d.ts +26 -0
  10. package/lib/commands/deploy/pipeline.js +50 -0
  11. package/lib/commands/deploy/pipeline.js.map +1 -0
  12. package/lib/common/base/abstractPromote.d.ts +69 -0
  13. package/lib/common/base/abstractPromote.js +173 -0
  14. package/lib/common/base/abstractPromote.js.map +1 -0
  15. package/lib/common/base/abstractReportOnPromote.d.ts +17 -0
  16. package/lib/common/base/abstractReportOnPromote.js +64 -0
  17. package/lib/common/base/abstractReportOnPromote.js.map +1 -0
  18. package/lib/common/base/abstractResume.d.ts +37 -0
  19. package/lib/common/base/abstractResume.js +90 -0
  20. package/lib/common/base/abstractResume.js.map +1 -0
  21. package/lib/common/constants.d.ts +9 -0
  22. package/lib/common/constants.js +20 -0
  23. package/lib/common/constants.js.map +1 -0
  24. package/lib/common/deployPipelineCache.d.ts +39 -0
  25. package/lib/common/deployPipelineCache.js +81 -0
  26. package/lib/common/deployPipelineCache.js.map +1 -0
  27. package/lib/common/flags/flags.d.ts +19 -0
  28. package/lib/common/flags/flags.js +84 -0
  29. package/lib/common/flags/flags.js.map +1 -0
  30. package/lib/common/flags/promote/promoteFlags.d.ts +12 -0
  31. package/lib/common/flags/promote/promoteFlags.js +52 -0
  32. package/lib/common/flags/promote/promoteFlags.js.map +1 -0
  33. package/lib/common/index.d.ts +2 -0
  34. package/lib/common/index.js +18 -0
  35. package/lib/common/index.js.map +1 -0
  36. package/lib/common/outputColumns.d.ts +17 -0
  37. package/lib/common/outputColumns.js +24 -0
  38. package/lib/common/outputColumns.js.map +1 -0
  39. package/lib/common/outputService/aorOutputService.d.ts +43 -0
  40. package/lib/common/outputService/aorOutputService.js +50 -0
  41. package/lib/common/outputService/aorOutputService.js.map +1 -0
  42. package/lib/common/outputService/deployCommandOutputService.d.ts +12 -0
  43. package/lib/common/outputService/deployCommandOutputService.js +28 -0
  44. package/lib/common/outputService/deployCommandOutputService.js.map +1 -0
  45. package/lib/common/outputService/deploySummaryBuilder.d.ts +32 -0
  46. package/lib/common/outputService/deploySummaryBuilder.js +185 -0
  47. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -0
  48. package/lib/common/outputService/deploymentResultOutputService.d.ts +23 -0
  49. package/lib/common/outputService/deploymentResultOutputService.js +18 -0
  50. package/lib/common/outputService/deploymentResultOutputService.js.map +1 -0
  51. package/lib/common/outputService/index.d.ts +6 -0
  52. package/lib/common/outputService/index.js +20 -0
  53. package/lib/common/outputService/index.js.map +1 -0
  54. package/lib/common/outputService/outputService.d.ts +27 -0
  55. package/lib/common/outputService/outputService.js +30 -0
  56. package/lib/common/outputService/outputService.js.map +1 -0
  57. package/lib/common/outputService/outputServiceFactory.d.ts +27 -0
  58. package/lib/common/outputService/outputServiceFactory.js +39 -0
  59. package/lib/common/outputService/outputServiceFactory.js.map +1 -0
  60. package/lib/common/outputService/outputUtils.d.ts +3 -0
  61. package/lib/common/outputService/outputUtils.js +26 -0
  62. package/lib/common/outputService/outputUtils.js.map +1 -0
  63. package/lib/common/outputService/promoteOutputService.d.ts +30 -0
  64. package/lib/common/outputService/promoteOutputService.js +55 -0
  65. package/lib/common/outputService/promoteOutputService.js.map +1 -0
  66. package/lib/common/outputService/reportOutputService.d.ts +21 -0
  67. package/lib/common/outputService/reportOutputService.js +54 -0
  68. package/lib/common/outputService/reportOutputService.js.map +1 -0
  69. package/lib/common/outputService/resumeCommandOutputService.d.ts +12 -0
  70. package/lib/common/outputService/resumeCommandOutputService.js +30 -0
  71. package/lib/common/outputService/resumeCommandOutputService.js.map +1 -0
  72. package/lib/common/outputService/resumeOutputService.d.ts +15 -0
  73. package/lib/common/outputService/resumeOutputService.js +19 -0
  74. package/lib/common/outputService/resumeOutputService.js.map +1 -0
  75. package/lib/common/selectors/asyncOperationResultsSelector.d.ts +7 -0
  76. package/lib/common/selectors/asyncOperationResultsSelector.js +21 -0
  77. package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -0
  78. package/lib/common/selectors/deployComponentsSelector.d.ts +3 -0
  79. package/lib/common/selectors/deployComponentsSelector.js +18 -0
  80. package/lib/common/selectors/deployComponentsSelector.js.map +1 -0
  81. package/lib/common/selectors/deployProgressSummarySelector.d.ts +13 -0
  82. package/lib/common/selectors/deployProgressSummarySelector.js +24 -0
  83. package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -0
  84. package/lib/common/selectors/deploymentResultsSelector.d.ts +7 -0
  85. package/lib/common/selectors/deploymentResultsSelector.js +24 -0
  86. package/lib/common/selectors/deploymentResultsSelector.js.map +1 -0
  87. package/lib/common/selectors/environmentSelector.d.ts +11 -0
  88. package/lib/common/selectors/environmentSelector.js +22 -0
  89. package/lib/common/selectors/environmentSelector.js.map +1 -0
  90. package/lib/common/selectors/namedCredentialSelector.d.ts +6 -0
  91. package/lib/common/selectors/namedCredentialSelector.js +24 -0
  92. package/lib/common/selectors/namedCredentialSelector.js.map +1 -0
  93. package/lib/common/selectors/pipelineStageSelector.d.ts +7 -0
  94. package/lib/common/selectors/pipelineStageSelector.js +22 -0
  95. package/lib/common/selectors/pipelineStageSelector.js.map +1 -0
  96. package/lib/common/selectors/workItemSelector.d.ts +11 -0
  97. package/lib/common/selectors/workItemSelector.js +22 -0
  98. package/lib/common/selectors/workItemSelector.js.map +1 -0
  99. package/lib/common/types.d.ts +98 -0
  100. package/lib/common/types.js +24 -0
  101. package/lib/common/types.js.map +1 -0
  102. package/lib/common/utils.d.ts +75 -0
  103. package/lib/common/utils.js +176 -0
  104. package/lib/common/utils.js.map +1 -0
  105. package/lib/configMeta.d.ts +13 -0
  106. package/lib/configMeta.js +28 -0
  107. package/lib/configMeta.js.map +1 -0
  108. package/lib/streamer/doceMonitor.d.ts +7 -0
  109. package/lib/streamer/doceMonitor.js +9 -0
  110. package/lib/streamer/doceMonitor.js.map +1 -0
  111. package/lib/streamer/doceStream.d.ts +20 -0
  112. package/lib/streamer/doceStream.js +33 -0
  113. package/lib/streamer/doceStream.js.map +1 -0
  114. package/lib/streamer/processors/asyncOpStream.d.ts +20 -0
  115. package/lib/streamer/processors/asyncOpStream.js +48 -0
  116. package/lib/streamer/processors/asyncOpStream.js.map +1 -0
  117. package/lib/streamer/sObjectStream.d.ts +22 -0
  118. package/lib/streamer/sObjectStream.js +40 -0
  119. package/lib/streamer/sObjectStream.js.map +1 -0
  120. package/messages/aorOperations.output.md +8 -0
  121. package/messages/cache.md +3 -0
  122. package/messages/commonErrors.md +31 -0
  123. package/messages/commonFlags.md +53 -0
  124. package/messages/config.md +3 -0
  125. package/messages/deploy.output.md +31 -0
  126. package/messages/deploy.pipeline.md +37 -0
  127. package/messages/deploy.pipeline.report.md +49 -0
  128. package/messages/deploy.pipeline.resume.md +23 -0
  129. package/messages/promoteFlags.md +53 -0
  130. package/messages/resume.output.md +4 -0
  131. package/oclif.manifest.json +247 -0
  132. package/package.json +115 -0
  133. package/schemas/deploy-pipeline-report.json +25 -0
  134. package/schemas/deploy-pipeline-resume.json +25 -0
  135. package/schemas/deploy-pipeline.json +25 -0
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2023, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
9
+ const core_1 = require("@salesforce/core");
10
+ /**
11
+ * Common base class for DOCe monitor that use the streaming api to listen to a streaming channel (CDC).
12
+ */
13
+ class DOCeStreaming {
14
+ constructor(org, wait) {
15
+ this.doceOrg = org;
16
+ this.wait = wait;
17
+ }
18
+ /**
19
+ * This creates the streaming client and starts listening the desired streaming channel.
20
+ *
21
+ * @param channel The channel we want to listen (CDC)
22
+ * @param processor The specific processor we want to use for the event
23
+ */
24
+ async startStream(channel, processor) {
25
+ const options = new core_1.StreamingClient.DefaultOptions(this.doceOrg, channel, processor);
26
+ options.setSubscribeTimeout(this.wait);
27
+ const streamClient = await core_1.StreamingClient.create(options);
28
+ await streamClient.handshake();
29
+ await streamClient.subscribe();
30
+ }
31
+ }
32
+ exports.default = DOCeStreaming;
33
+ //# sourceMappingURL=doceStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doceStream.js","sourceRoot":"","sources":["../../src/streamer/doceStream.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,2CAAsE;AAKtE;;GAEG;AACH,MAA8B,aAAa;IAIzC,YAAmB,GAAQ,EAAE,IAAc;QACzC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACO,KAAK,CAAC,WAAW,CAAC,OAAe,EAAE,SAA6C;QACxF,MAAM,OAAO,GAAG,IAAI,sBAAe,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACrF,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEvC,MAAM,YAAY,GAAG,MAAM,sBAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3D,MAAM,YAAY,CAAC,SAAS,EAAE,CAAC;QAC/B,MAAM,YAAY,CAAC,SAAS,EAAE,CAAC;IACjC,CAAC;CAGF;AAzBD,gCAyBC"}
@@ -0,0 +1,20 @@
1
+ import { Org, StatusResult } from '@salesforce/core';
2
+ import { Duration } from '@salesforce/kit';
3
+ import { AnyJson, JsonMap } from '@salesforce/ts-types';
4
+ import SObjectStreaming from '../sObjectStream';
5
+ import { AorOutputService } from '../../common/outputService';
6
+ export default class AsyncOpStreaming extends SObjectStreaming {
7
+ private outputService;
8
+ constructor(org: Org, wait: Duration, idToInspect: string, outputService: AorOutputService);
9
+ /**
10
+ * Connects to the AsyncOperationResults CDC channel and begins to monit for changes to the AOR we are monitoring. If the AOR......
11
+ */
12
+ monitor(): Promise<void | AnyJson>;
13
+ /**
14
+ * This is the processor for the AOR. While InProgress we print the message from the AOR. We finish the stream after completed or errored.
15
+ *
16
+ * @param payload The payload from the CDC event
17
+ * @returns StatusResult Completed: true => will end the stream.
18
+ */
19
+ protected asyncOpStreamProcessor(payload: JsonMap): StatusResult;
20
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const ts_types_1 = require("@salesforce/ts-types");
10
+ const sObjectStream_1 = require("../sObjectStream");
11
+ const constants_1 = require("../../common/constants");
12
+ class AsyncOpStreaming extends sObjectStream_1.default {
13
+ constructor(org, wait, idToInspect, outputService) {
14
+ super(org, wait, new Array(idToInspect), constants_1.ASYNC_OPERATION_CDC);
15
+ this.outputService = outputService;
16
+ }
17
+ /**
18
+ * Connects to the AsyncOperationResults CDC channel and begins to monit for changes to the AOR we are monitoring. If the AOR......
19
+ */
20
+ async monitor() {
21
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
22
+ return this.watchForSObject(this.asyncOpStreamProcessor.bind(this));
23
+ }
24
+ /**
25
+ * This is the processor for the AOR. While InProgress we print the message from the AOR. We finish the stream after completed or errored.
26
+ *
27
+ * @param payload The payload from the CDC event
28
+ * @returns StatusResult Completed: true => will end the stream.
29
+ */
30
+ // eslint-disable-next-line class-methods-use-this
31
+ asyncOpStreamProcessor(payload) {
32
+ const jsonPayload = (0, ts_types_1.ensureJsonMap)(payload);
33
+ // We build an aor given the payload
34
+ const asyncOpResult = jsonPayload;
35
+ // Print the aor status
36
+ this.outputService.printAorStatus(asyncOpResult);
37
+ // In a future we want to test !Is_Completed__c instead of Status != In Progress
38
+ if (asyncOpResult.sf_devops__Status__c && asyncOpResult.sf_devops__Status__c !== 'In Progress') {
39
+ return {
40
+ completed: true,
41
+ payload: jsonPayload,
42
+ };
43
+ }
44
+ return { completed: false };
45
+ }
46
+ }
47
+ exports.default = AsyncOpStreaming;
48
+ //# sourceMappingURL=asyncOpStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncOpStream.js","sourceRoot":"","sources":["../../../src/streamer/processors/asyncOpStream.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAMH,mDAAuE;AACvE,oDAAgD;AAChD,sDAA6D;AAI7D,MAAqB,gBAAiB,SAAQ,uBAAgB;IAG5D,YAAmB,GAAQ,EAAE,IAAc,EAAE,WAAmB,EAAE,aAA+B;QAC/F,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE,+BAAmB,CAAC,CAAC;QAC9D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,OAAO;QAClB,iEAAiE;QACjE,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAED;;;;;OAKG;IACH,kDAAkD;IACxC,sBAAsB,CAAC,OAAgB;QAC/C,MAAM,WAAW,GAAG,IAAA,wBAAa,EAAC,OAAO,CAAC,CAAC;QAE3C,oCAAoC;QACpC,MAAM,aAAa,GAAyB,WAAmC,CAAC;QAEhF,uBAAuB;QACvB,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAEjD,gFAAgF;QAChF,IAAI,aAAa,CAAC,oBAAoB,IAAI,aAAa,CAAC,oBAAoB,KAAK,aAAa,EAAE;YAC9F,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,WAAW;aACrB,CAAC;SACH;QACD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;CACF;AAzCD,mCAyCC"}
@@ -0,0 +1,22 @@
1
+ import { Org, StatusResult } from '@salesforce/core';
2
+ import { Duration } from '@salesforce/kit';
3
+ import { AnyJson, JsonMap } from '@salesforce/ts-types';
4
+ import DOCeStreaming from './doceStream';
5
+ export default abstract class SObjectStreaming extends DOCeStreaming {
6
+ private idsToInspect;
7
+ private channelName;
8
+ protected constructor(org: Org, wait: Duration, idsToInspect: string[], channelName: string);
9
+ /**
10
+ * This method sets the processor we will need inside the matchingProcessor and will start the stream.
11
+ *
12
+ * @param matchProcessor This processor will be used in the matchingProcessor, it's provided by each implementation.
13
+ */
14
+ protected watchForSObject(matchProcessor: (message: JsonMap) => StatusResult): Promise<void | AnyJson>;
15
+ /**
16
+ * This method processes if the event is valid for the IDs we want to monitor.
17
+ *
18
+ * @param event JsonMap containing the event from the streaming channel.
19
+ * @returns If the event is valid, the matchProcessor will handle the response. If it's not valid, we continue listening.
20
+ */
21
+ protected matchingProcessor(event: JsonMap, matchProcessor: (message: JsonMap) => StatusResult): StatusResult;
22
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ts_types_1 = require("@salesforce/ts-types");
4
+ const utils_1 = require("../common/utils");
5
+ const doceStream_1 = require("./doceStream");
6
+ class SObjectStreaming extends doceStream_1.default {
7
+ constructor(org, wait, idsToInspect, channelName) {
8
+ super(org, wait);
9
+ this.idsToInspect = idsToInspect;
10
+ this.channelName = channelName;
11
+ }
12
+ /**
13
+ * This method sets the processor we will need inside the matchingProcessor and will start the stream.
14
+ *
15
+ * @param matchProcessor This processor will be used in the matchingProcessor, it's provided by each implementation.
16
+ */
17
+ async watchForSObject(matchProcessor) {
18
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
19
+ return this.startStream(this.channelName, (event) => this.matchingProcessor(event, matchProcessor));
20
+ }
21
+ /**
22
+ * This method processes if the event is valid for the IDs we want to monitor.
23
+ *
24
+ * @param event JsonMap containing the event from the streaming channel.
25
+ * @returns If the event is valid, the matchProcessor will handle the response. If it's not valid, we continue listening.
26
+ */
27
+ matchingProcessor(event, matchProcessor) {
28
+ const jsonPayload = (0, ts_types_1.ensureJsonMap)(event.payload);
29
+ const changeEventHeader = (0, ts_types_1.ensureJsonMap)(jsonPayload.ChangeEventHeader);
30
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
31
+ if (changeEventHeader.recordIds != null && (0, utils_1.containsSfId)(this.idsToInspect, changeEventHeader.recordIds[0])) {
32
+ return matchProcessor(jsonPayload);
33
+ }
34
+ else {
35
+ return { completed: false };
36
+ }
37
+ }
38
+ }
39
+ exports.default = SObjectStreaming;
40
+ //# sourceMappingURL=sObjectStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sObjectStream.js","sourceRoot":"","sources":["../../src/streamer/sObjectStream.ts"],"names":[],"mappings":";;AAQA,mDAAuE;AACvE,2CAA+C;AAC/C,6CAAyC;AAEzC,MAA8B,gBAAiB,SAAQ,oBAAa;IAIlE,YAAsB,GAAQ,EAAE,IAAc,EAAE,YAAsB,EAAE,WAAmB;QACzF,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,eAAe,CAAC,cAAkD;QAChF,iEAAiE;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;IAC/G,CAAC;IAED;;;;;OAKG;IACO,iBAAiB,CAAC,KAAc,EAAE,cAAkD;QAC5F,MAAM,WAAW,GAAG,IAAA,wBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACjD,MAAM,iBAAiB,GAAG,IAAA,wBAAa,EAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QAEvE,iEAAiE;QACjE,IAAI,iBAAiB,CAAC,SAAS,IAAI,IAAI,IAAI,IAAA,oBAAY,EAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;YAC1G,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC;SACpC;aAAM;YACL,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;SAC7B;IACH,CAAC;CACF;AArCD,mCAqCC"}
@@ -0,0 +1,8 @@
1
+ # output.aor-error-status
2
+
3
+ %s
4
+ Error details: %s
5
+
6
+ # output.aor-id
7
+
8
+ Job ID: %s
@@ -0,0 +1,3 @@
1
+ # error.NoRecentAorId
2
+
3
+ Can't find the job ID. Verify that a pipeline promotion has been started.
@@ -0,0 +1,31 @@
1
+ # error.NoTestsSpecified
2
+
3
+ You must specify tests using the --tests flag if the --test-level flag is set to RunSpecifiedTests.
4
+
5
+ # error.InvalidRunTests
6
+
7
+ runTests can be used only with a testLevel of RunSpecifiedTests.
8
+
9
+ # error.BranchNotFound
10
+
11
+ The %s branch doesn't exist in %s project. Specify a valid branch name and try again.
12
+
13
+ # error.ProjectNotFound
14
+
15
+ The %s project doesn't exist. Specify a valid project name and try again.
16
+
17
+ # error.DevopsAppNotInstalled
18
+
19
+ The DevOps Center app wasn't found in the specified org. Verify the org username and try again.
20
+
21
+ # error.InvalidAorId
22
+
23
+ No job found for ID: %s.
24
+
25
+ # error.JobNotResumable
26
+
27
+ Job ID %s is not resumable with status %s.
28
+
29
+ # error.ClientTimeout
30
+
31
+ The command has timed out, although it's still running. To check the status of the current operation, run "%s %s report".
@@ -0,0 +1,53 @@
1
+ # flags.devops-center-project-name.summary
2
+
3
+ Name of the DevOps Center project.
4
+
5
+ # flags.devops-center-username.summary
6
+
7
+ Username or alias for the DevOps Center org.
8
+
9
+ # flags.wait.description
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".
12
+
13
+ # flags.wait.summary
14
+
15
+ Number of minutes to wait for command to complete and display results.
16
+
17
+ # flags.targetDoceOrg.summary
18
+
19
+ Username or alias of the DevOps Center org.
20
+
21
+ # flags.job-id.summary
22
+
23
+ Job ID of the pipeline deploy operation you want to resume.
24
+
25
+ # flags.job-id.description
26
+
27
+ These commands return a job ID if they time out or you specified the --async flag:
28
+
29
+ - sf deploy pipeline
30
+ - sf deploy pipeline validate
31
+ - sf deploy pipeline quick
32
+
33
+ The job ID is valid for 10 days from when you started the deploy operation.
34
+
35
+ # flags.use-most-recent.summary
36
+
37
+ Use the job ID of the most recent deploy operation.
38
+
39
+ # flags.use-most-recent.description
40
+
41
+ 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.
42
+
43
+ # flags.verbose.summary
44
+
45
+ Show verbose output of the command result.
46
+
47
+ # flags.concise.summary
48
+
49
+ Show concise output of the command result.
50
+
51
+ # errors.NoDefaultDoceEnv
52
+
53
+ You must specify the DevOps Center org username by indicating the -c flag on the command line or by setting the target-devops-center configuration variable.
@@ -0,0 +1,3 @@
1
+ # target-devops-center
2
+
3
+ Username or alias of the DevOps Center org.
@@ -0,0 +1,31 @@
1
+ # output.async-run-info
2
+
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.
6
+
7
+ # output.item
8
+
9
+ item
10
+
11
+ # output.items
12
+
13
+ items
14
+
15
+ # output.adhoc-deploy-summary
16
+
17
+ DevOps Center pipeline stage %s being updated with metadata associated with work %s %s.
18
+ Deploying metadata from %s branch to target org %s.
19
+
20
+ # output.version-or-soup-deploy-summary-wis
21
+
22
+ work %s %s in bundle %s
23
+
24
+ # output.version-or-soup-deploy-summary
25
+
26
+ DevOps Center pipeline stage %s being updated with metadata associated with %s.
27
+ Deploying metadata from %s branch to target org %s.
28
+
29
+ # output.concise.summary
30
+
31
+ DevOps Center pipeline stage %s being updated. Deploying metadata from %s branch to target org %s.
@@ -0,0 +1,37 @@
1
+ # summary
2
+
3
+ Deploy changes from a branch to the pipeline stage’s org.
4
+
5
+ # description
6
+
7
+ Before you run this command, changes in the branch must be merged in the source control repository.
8
+
9
+ # examples
10
+
11
+ - Deploy changes in the Staging branch to the Staging environment (sandbox), if the previous stage is the bundling stage:
12
+
13
+ <%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox --bundle-version-name 1.0
14
+
15
+ - Deploy all changes in the main branch to the release environment:
16
+
17
+ <%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name main --devops-center-username MyReleaseOrg --deploy-all
18
+
19
+ # deployComponent.operation.column
20
+
21
+ Operation
22
+
23
+ # deployComponent.name.column
24
+
25
+ Name
26
+
27
+ # deployComponent.type.column
28
+
29
+ Type
30
+
31
+ # deployComponent.path.column
32
+
33
+ Path
34
+
35
+ # deployComponent.table.title
36
+
37
+ Deployed Source
@@ -0,0 +1,49 @@
1
+ # summary
2
+
3
+ Check the status of a pipeline deploy operation.
4
+
5
+ # description
6
+
7
+ 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
+
9
+ # examples
10
+
11
+ - Check the status using a job ID:
12
+
13
+ <%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2
14
+
15
+ - Check the status of the most recent deploy operation:
16
+
17
+ <%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --use-most-recent
18
+
19
+ # flags.job-id.summary
20
+
21
+ Job ID of the pipeline deployment you want to check the status of.
22
+
23
+ # flags.job-id.description
24
+
25
+ The job ID is valid for 10 days from when you started the deploy operation.
26
+
27
+ # flags.use-most-recent.summary
28
+
29
+ Use the job ID of the most recent deploy operation.
30
+
31
+ # flags.use-most-recent.description
32
+
33
+ For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find a job ID.
34
+
35
+ # report.key.created-by-name
36
+
37
+ CreatedByName
38
+
39
+ # report.key.column
40
+
41
+ Key
42
+
43
+ # report.value.column
44
+
45
+ Value
46
+
47
+ # report.info.header
48
+
49
+ Info
@@ -0,0 +1,23 @@
1
+ # summary
2
+
3
+ Resume watching a pipeline deploy operation.
4
+
5
+ # description
6
+
7
+ Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.
8
+
9
+ 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.
10
+
11
+ # examples
12
+
13
+ - Resume watching a deploy operation using a job ID:
14
+
15
+ <%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2
16
+
17
+ - Resume watching the most recent deploy operation:
18
+
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".
@@ -0,0 +1,53 @@
1
+ # promote.branch-name.summary
2
+
3
+ Name of the branch in the source control repository from which to deploy changes to the stage’s org.
4
+
5
+ # promote.deploy-all.summary
6
+
7
+ Deploy all metadata in branch.
8
+
9
+ # promote.deploy-all.description
10
+
11
+ If you don’t specify this flag, only changes in the stage’s branch are deployed.
12
+
13
+ # promote.bundle-version-name.summary
14
+
15
+ Version name of the bundle.
16
+
17
+ # promote.bundle-version-name.description
18
+
19
+ You must indicate the bundle version if deploying to the environment that corresponds to the first stage after the bundling stage.
20
+
21
+ # promote.tests.summary
22
+
23
+ Apex tests to run when --test-level is RunSpecifiedTests.
24
+
25
+ # promote.tests.description
26
+
27
+ Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test name contains a space.
28
+
29
+ # promote.test-level.summary
30
+
31
+ Deployment Apex testing level.
32
+
33
+ # promote.test-level.description
34
+
35
+ Valid values are:
36
+
37
+ - 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.
38
+
39
+ - 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.
40
+
41
+ - 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.
42
+
43
+ - RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.
44
+
45
+ If 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".
46
+
47
+ # promote.async.description
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".
50
+
51
+ # promote.async.summary
52
+
53
+ Run the command asynchronously.
@@ -0,0 +1,4 @@
1
+ # output.summary
2
+
3
+ <!-- prettier-ignore -->
4
+ *** Resuming %s ***