@salesforce/plugin-devops-center 0.1.0-beta.1 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -22
- package/lib/commands/{deploy → project/deploy}/pipeline/report.d.ts +2 -2
- package/lib/commands/{deploy → project/deploy}/pipeline/report.js +2 -2
- package/lib/commands/project/deploy/pipeline/report.js.map +1 -0
- package/lib/commands/{deploy → project/deploy}/pipeline/resume.d.ts +2 -3
- package/lib/commands/{deploy → project/deploy}/pipeline/resume.js +2 -3
- package/lib/commands/project/deploy/pipeline/resume.js.map +1 -0
- package/lib/commands/{deploy/pipeline.d.ts → project/deploy/pipeline/start.d.ts} +3 -3
- package/lib/commands/{deploy/pipeline.js → project/deploy/pipeline/start.js} +5 -5
- package/lib/commands/project/deploy/pipeline/start.js.map +1 -0
- package/lib/common/base/abstractPromote.js +5 -2
- package/lib/common/base/abstractPromote.js.map +1 -1
- package/lib/common/base/abstractReportOnPromote.js +13 -19
- package/lib/common/base/abstractReportOnPromote.js.map +1 -1
- package/lib/common/base/abstractResume.d.ts +0 -1
- package/lib/common/base/abstractResume.js +5 -2
- package/lib/common/base/abstractResume.js.map +1 -1
- package/lib/common/flags/flags.d.ts +5 -0
- package/lib/common/flags/flags.js +14 -6
- package/lib/common/flags/flags.js.map +1 -1
- package/lib/common/outputColumns.js +1 -1
- package/lib/common/outputColumns.js.map +1 -1
- package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
- package/lib/common/outputService/deploySummaryBuilder.js +6 -8
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
- package/lib/common/outputService/reportOutputService.js +1 -1
- package/lib/common/outputService/reportOutputService.js.map +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js +3 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.js +2 -1
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.js +3 -2
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +1 -1
- package/lib/common/selectors/deploymentResultsSelector.js +3 -1
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.d.ts +1 -1
- package/lib/common/selectors/environmentSelector.js +3 -2
- package/lib/common/selectors/environmentSelector.js.map +1 -1
- package/lib/common/selectors/namedCredentialSelector.js +2 -1
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.js +2 -1
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/selectorUtils.d.ts +3 -0
- package/lib/common/selectors/selectorUtils.js +36 -0
- package/lib/common/selectors/selectorUtils.js.map +1 -0
- package/lib/common/selectors/workItemSelector.js +2 -1
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/common/types.d.ts +1 -0
- package/lib/common/types.js.map +1 -1
- package/lib/common/utils.js +6 -7
- package/lib/common/utils.js.map +1 -1
- package/lib/configMeta.d.ts +5 -0
- package/lib/configMeta.js +8 -0
- package/lib/configMeta.js.map +1 -1
- package/messages/commonErrors.md +16 -0
- package/messages/commonFlags.md +4 -4
- package/messages/config.md +4 -0
- package/messages/deploy.output.md +2 -2
- package/messages/{deploy.pipeline.resume.md → project.deploy.pipeline.resume.md} +0 -4
- package/messages/promoteFlags.md +1 -1
- package/messages/resume.output.md +1 -2
- package/oclif.manifest.json +121 -121
- package/package.json +19 -14
- package/lib/commands/deploy/pipeline/report.js.map +0 -1
- package/lib/commands/deploy/pipeline/resume.js.map +0 -1
- package/lib/commands/deploy/pipeline.js.map +0 -1
- /package/messages/{deploy.pipeline.report.md → project.deploy.pipeline.report.md} +0 -0
- /package/messages/{deploy.pipeline.md → project.deploy.pipeline.start.md} +0 -0
- /package/schemas/{deploy-pipeline-report.json → project-deploy-pipeline-report.json} +0 -0
- /package/schemas/{deploy-pipeline-resume.json → project-deploy-pipeline-resume.json} +0 -0
- /package/schemas/{deploy-pipeline.json → project-deploy-pipeline-start.json} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncOperationResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/asyncOperationResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;;GAGG;AACI,KAAK,UAAU,8BAA8B,CAAC,GAAe,EAAE,KAAa;IACjF,MAAM,QAAQ,GAAG;;kCAEe,KAAK,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncOperationResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/asyncOperationResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,8BAA8B,CAAC,GAAe,EAAE,KAAa;IACjF,MAAM,QAAQ,GAAG;;kCAEe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAsC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAPD,wEAOC"}
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectDeployComponentsByAsyncOpId = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
async function selectDeployComponentsByAsyncOpId(con, asyncOpId) {
|
|
11
12
|
const queryStr = `SELECT sf_devops__Source_Component__c, sf_devops__Operation__c, sf_devops__File_Path__c
|
|
12
13
|
FROM sf_devops__Deploy_Component__c
|
|
13
14
|
WHERE sf_devops__Deployment_Result__r.sf_devops__Status__c = '${asyncOpId}'`;
|
|
14
|
-
const resp = await
|
|
15
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
15
16
|
return resp.records;
|
|
16
17
|
}
|
|
17
18
|
exports.selectDeployComponentsByAsyncOpId = selectDeployComponentsByAsyncOpId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployComponentsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployComponentsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"deployComponentsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployComponentsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAExC,KAAK,UAAU,iCAAiC,CACrD,GAAe,EACf,SAAiB;IAEjB,MAAM,QAAQ,GAAG;;oFAEiE,SAAS,GAAG,CAAC;IAE/F,MAAM,IAAI,GAAiC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAVD,8EAUC"}
|
|
@@ -7,17 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectDeployAORSummaryDataById = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the data necessary to create the deploy summary (or part of it).
|
|
12
13
|
*/
|
|
13
14
|
async function selectDeployAORSummaryDataById(con, aorId) {
|
|
14
15
|
const queryStr = `SELECT Id, sf_devops__Operation__c,
|
|
15
|
-
(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),
|
|
16
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),
|
|
17
18
|
(SELECT Name FROM sf_devops__Work_Items__r)
|
|
18
19
|
FROM sf_devops__Async_Operation_Result__c
|
|
19
20
|
WHERE Id = '${aorId}'`;
|
|
20
|
-
const resp = await
|
|
21
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
21
22
|
return resp.records[0];
|
|
22
23
|
}
|
|
23
24
|
exports.selectDeployAORSummaryDataById = selectDeployAORSummaryDataById;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployProgressSummarySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployProgressSummarySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"deployProgressSummarySelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deployProgressSummarySelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAU/C;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,KAAa;IAEb,MAAM,QAAQ,GAAG;;;;;kCAKe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAA0C,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACtF,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAbD,wEAaC"}
|
|
@@ -4,4 +4,4 @@ import { DeploymentResult } from '../types';
|
|
|
4
4
|
*
|
|
5
5
|
* Returns deployment result record filtering by async job id.
|
|
6
6
|
*/
|
|
7
|
-
export declare function selectOneDeploymentResultByAsyncJobId(con: Connection, asyncJobId: string): Promise<DeploymentResult>;
|
|
7
|
+
export declare function selectOneDeploymentResultByAsyncJobId(con: Connection, asyncJobId: string): Promise<DeploymentResult | null>;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectOneDeploymentResultByAsyncJobId = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns deployment result record filtering by async job id.
|
|
@@ -18,7 +19,8 @@ async function selectOneDeploymentResultByAsyncJobId(con, asyncJobId) {
|
|
|
18
19
|
sf_devops__Status__r.sf_devops__Status__c, sf_devops__Status__r.sf_devops__Error_Details__c
|
|
19
20
|
FROM sf_devops__Deployment_Result__c
|
|
20
21
|
WHERE sf_devops__Status__r.Id = '${asyncJobId}'`;
|
|
21
|
-
|
|
22
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr, true);
|
|
23
|
+
return resp.totalSize > 0 ? resp.records[0] : null;
|
|
22
24
|
}
|
|
23
25
|
exports.selectOneDeploymentResultByAsyncJobId = selectOneDeploymentResultByAsyncJobId;
|
|
24
26
|
//# sourceMappingURL=deploymentResultsSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploymentResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deploymentResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH;;;GAGG;AACI,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,UAAkB;IAElB,MAAM,QAAQ,GAAG;;;;;uDAKoC,UAAU,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"deploymentResultsSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/deploymentResultsSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,qCAAqC,CACzD,GAAe,EACf,UAAkB;IAElB,MAAM,QAAQ,GAAG;;;;;uDAKoC,UAAU,GAAG,CAAC;IAEnE,MAAM,IAAI,GAAkC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpF,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACrD,CAAC;AAbD,sFAaC"}
|
|
@@ -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
|
-
|
|
5
|
+
Name: string;
|
|
6
6
|
sf_devops__Pipeline_Stages__r: QueryResult<PipelineStage>;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectPipelineStageByEnvironment = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the named credential and pipeline stage name associated with the envId sent
|
|
12
13
|
*/
|
|
13
14
|
async function selectPipelineStageByEnvironment(con, envId) {
|
|
14
|
-
const queryStr = `SELECT
|
|
15
|
+
const queryStr = `SELECT Name,
|
|
15
16
|
(SELECT Name FROM sf_devops__Pipeline_Stages__r)
|
|
16
17
|
FROM sf_devops__Environment__c
|
|
17
18
|
WHERE Id = '${envId}'`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records[0];
|
|
20
21
|
}
|
|
21
22
|
exports.selectPipelineStageByEnvironment = selectPipelineStageByEnvironment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"environmentSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/environmentSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,gCAAgC,CAAC,GAAe,EAAE,KAAa;IACnF,MAAM,QAAQ,GAAG;;;kCAGe,KAAK,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAgC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AARD,4EAQC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectNamedCredentialByName = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Given a named credential it returns the org url (endpoint) associated with it
|
|
12
13
|
*/
|
|
@@ -17,7 +18,7 @@ async function selectNamedCredentialByName(con, name) {
|
|
|
17
18
|
WHERE DeveloperName = '${name}'
|
|
18
19
|
AND NamespacePrefix = 'sf_devops'
|
|
19
20
|
LIMIT 1`;
|
|
20
|
-
const resp = await
|
|
21
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
21
22
|
return resp.records[0];
|
|
22
23
|
}
|
|
23
24
|
exports.selectNamedCredentialByName = selectNamedCredentialByName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"namedCredentialSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/namedCredentialSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;GAEG;AACI,KAAK,UAAU,2BAA2B,CAAC,GAAe,EAAE,IAAY;IAC7E,MAAM,QAAQ,GAAG;;;6BAGU,IAAI;;YAErB,CAAC;IAEX,MAAM,IAAI,GAAiC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC;AAVD,kEAUC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectPipelineStagesByProject = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
*
|
|
12
13
|
* Returns an array of a pipeline stages filtering by project name.
|
|
@@ -15,7 +16,7 @@ async function selectPipelineStagesByProject(con, projectName) {
|
|
|
15
16
|
const queryStr = `SELECT Id, sf_devops__Pipeline__r.sf_devops__Project__c, sf_devops__Branch__r.sf_devops__Name__c, (SELECT Id FROM sf_devops__Pipeline_Stages__r)
|
|
16
17
|
FROM sf_devops__Pipeline_Stage__c
|
|
17
18
|
WHERE sf_devops__Pipeline__r.sf_devops__Project__r.Name = '${projectName}'`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records;
|
|
20
21
|
}
|
|
21
22
|
exports.selectPipelineStagesByProject = selectPipelineStagesByProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"pipelineStageSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/pipelineStageSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAE/C;;;GAGG;AACI,KAAK,UAAU,6BAA6B,CAAC,GAAe,EAAE,WAAmB;IACtF,MAAM,QAAQ,GAAG;;iFAE8D,WAAW,GAAG,CAAC;IAE9F,MAAM,IAAI,GAA+B,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAPD,sEAOC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
exports.runSafeQuery = void 0;
|
|
10
|
+
const core_1 = require("@salesforce/core");
|
|
11
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
|
+
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
13
|
+
async function runSafeQuery(con, queryStr, allowNullResults = false) {
|
|
14
|
+
// Parameters verification
|
|
15
|
+
if (!con) {
|
|
16
|
+
throw messages.createError('error.connection-required');
|
|
17
|
+
}
|
|
18
|
+
if (typeof queryStr !== 'string' || queryStr.trim().length === 0) {
|
|
19
|
+
throw messages.createError('error.query-string-required');
|
|
20
|
+
}
|
|
21
|
+
// Run the query and verify for results
|
|
22
|
+
try {
|
|
23
|
+
// We query for 10000 results and we use autoFetch to queryMore automatically.
|
|
24
|
+
const result = await con.query(queryStr, { autoFetch: true, maxFetch: 10000 });
|
|
25
|
+
if ((result.totalSize > 0 && result.records) || (result.totalSize === 0 && allowNullResults)) {
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
throw messages.createError('error.query-failed', [error.name]);
|
|
31
|
+
}
|
|
32
|
+
// If we arrive here, it means the query has no results.
|
|
33
|
+
throw messages.createError('error.no-results-found');
|
|
34
|
+
}
|
|
35
|
+
exports.runSafeQuery = runSafeQuery;
|
|
36
|
+
//# sourceMappingURL=selectorUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../src/common/selectors/selectorUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAwD;AAGxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEpF,KAAK,UAAU,YAAY,CAChC,GAAe,EACf,QAAgB,EAChB,gBAAgB,GAAG,KAAK;IAExB,0BAA0B;IAC1B,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,QAAQ,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;KACzD;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QAChE,MAAM,QAAQ,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;KAC3D;IAED,uCAAuC;IACvC,IAAI;QACF,8EAA8E;QAC9E,MAAM,MAAM,GAAmB,MAAM,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,CAAC,IAAI,gBAAgB,CAAC,EAAE;YAC5F,OAAO,MAAM,CAAC;SACf;KACF;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,QAAQ,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAE,KAAe,CAAC,IAAI,CAAC,CAAC,CAAC;KAC3E;IAED,wDAAwD;IACxD,MAAM,QAAQ,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;AACvD,CAAC;AA1BD,oCA0BC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.selectWorkItemsByChangeBundles = void 0;
|
|
10
|
+
const selectorUtils_1 = require("./selectorUtils");
|
|
10
11
|
/**
|
|
11
12
|
* Returns the work items included in the change bundles sent
|
|
12
13
|
*/
|
|
@@ -15,7 +16,7 @@ async function selectWorkItemsByChangeBundles(con, changeBundles) {
|
|
|
15
16
|
(SELECT Name FROM sf_devops__Work_Items__r)
|
|
16
17
|
FROM sf_devops__Change_Bundle__c
|
|
17
18
|
WHERE Id IN (${changeBundles.map((id) => "'" + id + "'").join(', ')})`;
|
|
18
|
-
const resp = await
|
|
19
|
+
const resp = await (0, selectorUtils_1.runSafeQuery)(con, queryStr);
|
|
19
20
|
return resp.records;
|
|
20
21
|
}
|
|
21
22
|
exports.selectWorkItemsByChangeBundles = selectWorkItemsByChangeBundles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"workItemSelector.js","sourceRoot":"","sources":["../../../src/common/selectors/workItemSelector.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAKH,mDAA+C;AAQ/C;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,GAAe,EACf,aAAuB;IAEvB,MAAM,QAAQ,GAAG;;;mCAGgB,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAEzF,MAAM,IAAI,GAAsC,MAAM,IAAA,4BAAY,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAXD,wEAWC"}
|
package/lib/common/types.d.ts
CHANGED
package/lib/common/types.js.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/lib/common/utils.js
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.getFormattedDeployComponentsByAyncOpId = exports.formatFieldName = exports.sObjectToArrayOfKeyValue = exports.matchesSfId = exports.containsSfId = exports.getAsyncOperationStreamer = exports.fetchAsyncOperationResult = exports.fetchAndValidatePipelineStage = exports.validateTestFlags = void 0;
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
|
-
const ts_types_1 = require("@salesforce/ts-types");
|
|
12
11
|
const common_1 = require("../common");
|
|
13
12
|
const pipelineStageSelector_1 = require("../common/selectors/pipelineStageSelector");
|
|
14
13
|
const asyncOpStream_1 = require("../streamer/processors/asyncOpStream");
|
|
@@ -52,13 +51,13 @@ async function fetchAndValidatePipelineStage(targetOrg, projectName, branchName)
|
|
|
52
51
|
}
|
|
53
52
|
catch (err) {
|
|
54
53
|
const error = err;
|
|
55
|
-
if (error.
|
|
54
|
+
if (error.name === 'Query-failedError') {
|
|
56
55
|
throw messages.createError('error.DevopsAppNotInstalled');
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
throw
|
|
57
|
+
else if (error.name === 'No-results-foundError') {
|
|
58
|
+
throw messages.createError('error.ProjectNotFound', [projectName]);
|
|
59
|
+
}
|
|
60
|
+
throw err;
|
|
62
61
|
}
|
|
63
62
|
// find stage by branch name
|
|
64
63
|
const stage = stages.find((s) => s.sf_devops__Branch__r.sf_devops__Name__c.toUpperCase() === branchName.toUpperCase());
|
|
@@ -75,7 +74,7 @@ async function fetchAsyncOperationResult(con, aorId) {
|
|
|
75
74
|
}
|
|
76
75
|
catch (err) {
|
|
77
76
|
const error = err;
|
|
78
|
-
if (error.name === '
|
|
77
|
+
if (error.name === 'No-results-foundError') {
|
|
79
78
|
throw messages.createError('error.InvalidAorId', [aorId]);
|
|
80
79
|
}
|
|
81
80
|
throw err;
|
package/lib/common/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/common/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
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,mFAA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,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"}
|
package/lib/configMeta.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConfigValue } from '@salesforce/core';
|
|
1
2
|
export declare enum ConfigVars {
|
|
2
3
|
TARGET_DEVOPS_CENTER = "target-devops-center"
|
|
3
4
|
}
|
|
@@ -9,5 +10,9 @@ declare const _default: {
|
|
|
9
10
|
key: ConfigVars;
|
|
10
11
|
description: string;
|
|
11
12
|
hidden: boolean;
|
|
13
|
+
input: {
|
|
14
|
+
validator: (value: ConfigValue) => boolean;
|
|
15
|
+
failedMessage: (value: ConfigValue) => string;
|
|
16
|
+
};
|
|
12
17
|
}[];
|
|
13
18
|
export default _default;
|
package/lib/configMeta.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ConfigVars = void 0;
|
|
10
|
+
const child_process_1 = require("child_process");
|
|
10
11
|
const core_1 = require("@salesforce/core");
|
|
11
12
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
12
13
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-devops-center', 'config');
|
|
@@ -23,6 +24,13 @@ exports.default = [
|
|
|
23
24
|
key: ConfigVars.TARGET_DEVOPS_CENTER,
|
|
24
25
|
description: messages.getMessage(ConfigVars.TARGET_DEVOPS_CENTER),
|
|
25
26
|
hidden: false,
|
|
27
|
+
input: {
|
|
28
|
+
validator: (value) => {
|
|
29
|
+
const result = (0, child_process_1.spawnSync)('sf', ['force:org:display', '-u', value]);
|
|
30
|
+
return result.status === 0;
|
|
31
|
+
},
|
|
32
|
+
failedMessage: (value) => messages.getMessage('error.OrgNotAuthenticated', [value]),
|
|
33
|
+
},
|
|
26
34
|
},
|
|
27
35
|
];
|
|
28
36
|
//# sourceMappingURL=configMeta.js.map
|
package/lib/configMeta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configMeta.js","sourceRoot":"","sources":["../src/configMeta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"configMeta.js","sourceRoot":"","sources":["../src/configMeta.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iDAA0C;AAC1C,2CAAyD;AAEzD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAC;AAErF,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2DAA6C,CAAA;AAC/C,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAED;;;GAGG;AACH,kBAAe;IACb;QACE,GAAG,EAAE,UAAU,CAAC,oBAAoB;QACpC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACjE,MAAM,EAAE,KAAK;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC,KAAkB,EAAW,EAAE;gBACzC,MAAM,MAAM,GAAG,IAAA,yBAAS,EAAC,IAAI,EAAE,CAAC,mBAAmB,EAAE,IAAI,EAAE,KAAe,CAAC,CAAC,CAAC;gBAC7E,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;YAC7B,CAAC;YACD,aAAa,EAAE,CAAC,KAAkB,EAAU,EAAE,CAC5C,QAAQ,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAC,KAAe,CAAC,CAAC;SACtE;KACF;CACF,CAAC"}
|
package/messages/commonErrors.md
CHANGED
|
@@ -29,3 +29,19 @@ Job ID %s is not resumable with status %s.
|
|
|
29
29
|
# error.ClientTimeout
|
|
30
30
|
|
|
31
31
|
The command has timed out, although it's still running. To check the status of the current operation, run "%s %s report".
|
|
32
|
+
|
|
33
|
+
# error.no-results-found
|
|
34
|
+
|
|
35
|
+
No results found
|
|
36
|
+
|
|
37
|
+
# error.query-failed
|
|
38
|
+
|
|
39
|
+
Query failed: %s
|
|
40
|
+
|
|
41
|
+
# error.connection-required
|
|
42
|
+
|
|
43
|
+
Connection is required
|
|
44
|
+
|
|
45
|
+
# error.query-string-required
|
|
46
|
+
|
|
47
|
+
Query string is required and must be a non-empty string
|
package/messages/commonFlags.md
CHANGED
|
@@ -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
|
|
package/messages/config.md
CHANGED
|
@@ -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".
|
package/messages/promoteFlags.md
CHANGED
|
@@ -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
|
|