@catladder/cli 0.0.0-inventory-53a24d70 → 0.0.0-inventory-2ef22dde
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/dist/bundles/catenv/index.js +58 -19
- package/dist/bundles/cli/index.js +58 -19
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -38691,12 +38691,14 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
38691
38691
|
};
|
|
38692
38692
|
|
|
38693
38693
|
exports.__esModule = true;
|
|
38694
|
-
exports.createBuildJob = void 0;
|
|
38694
|
+
exports.createBuildJob = exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = void 0;
|
|
38695
38695
|
|
|
38696
38696
|
var lodash_1 = __nccwpck_require__(3255);
|
|
38697
38697
|
|
|
38698
38698
|
var __1 = __nccwpck_require__(5355);
|
|
38699
38699
|
|
|
38700
|
+
var reportingJob_1 = __nccwpck_require__(9572);
|
|
38701
|
+
|
|
38700
38702
|
var utils_1 = __nccwpck_require__(7461);
|
|
38701
38703
|
|
|
38702
38704
|
var yarn_1 = __nccwpck_require__(464);
|
|
@@ -38705,6 +38707,8 @@ var constants_1 = __nccwpck_require__(1542);
|
|
|
38705
38707
|
|
|
38706
38708
|
var getBuildInfo_1 = __nccwpck_require__(9197);
|
|
38707
38709
|
|
|
38710
|
+
exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = reportingJob_1.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX + "_app.json";
|
|
38711
|
+
|
|
38708
38712
|
var createBuildJob = function (context, _a) {
|
|
38709
38713
|
var _b, _c;
|
|
38710
38714
|
|
|
@@ -38722,7 +38726,7 @@ var createBuildJob = function (context, _a) {
|
|
|
38722
38726
|
variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
|
|
38723
38727
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
|
|
38724
38728
|
artifacts: {
|
|
38725
|
-
paths: [context.componentConfig.dir + "/__build_info.json"]
|
|
38729
|
+
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES]
|
|
38726
38730
|
}
|
|
38727
38731
|
}, def);
|
|
38728
38732
|
};
|
|
@@ -39076,7 +39080,7 @@ var constants_2 = __nccwpck_require__(9284);
|
|
|
39076
39080
|
var yarn_1 = __nccwpck_require__(464);
|
|
39077
39081
|
|
|
39078
39082
|
var createNodeBuildJobs = function (context) {
|
|
39079
|
-
var _a, _b, _c, _d, _e;
|
|
39083
|
+
var _a, _b, _c, _d, _e, _f;
|
|
39080
39084
|
|
|
39081
39085
|
var buildConfig = context.componentConfig.build;
|
|
39082
39086
|
|
|
@@ -39085,17 +39089,19 @@ var createNodeBuildJobs = function (context) {
|
|
|
39085
39089
|
}
|
|
39086
39090
|
|
|
39087
39091
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
39092
|
+
var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
|
|
39093
|
+
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + createBuildJob_1.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES;
|
|
39088
39094
|
var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
|
|
39089
39095
|
variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
|
|
39090
39096
|
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
39091
|
-
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((
|
|
39097
|
+
script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), [yarnReportDependenciesCommand], false),
|
|
39092
39098
|
artifacts: {
|
|
39093
|
-
paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((
|
|
39099
|
+
paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
|
|
39094
39100
|
return (0, path_1.join)(context.componentConfig.dir, path);
|
|
39095
|
-
})) !== null &&
|
|
39101
|
+
})) !== null && _d !== void 0 ? _d : []), false)
|
|
39096
39102
|
}
|
|
39097
39103
|
}) : null;
|
|
39098
|
-
return __spreadArray(__spreadArray(
|
|
39104
|
+
return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
|
|
39099
39105
|
script: [buildConfig.type === "node-static" || buildConfig.type === "storybook" ? "ensureNginxDockerfile" : "ensureNodeDockerfile"],
|
|
39100
39106
|
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context, "pull")), false),
|
|
39101
39107
|
variables: {
|
|
@@ -39107,18 +39113,12 @@ var createNodeBuildJobs = function (context) {
|
|
|
39107
39113
|
prodOnly: true,
|
|
39108
39114
|
noScripts: true
|
|
39109
39115
|
}),
|
|
39110
|
-
DOCKER_COPY_WORKSPACE_FILES: (
|
|
39116
|
+
DOCKER_COPY_WORKSPACE_FILES: (_f = (_e = context.packageManagerInfo) === null || _e === void 0 ? void 0 : _e.pathsToCopyInDocker.map(function (dir) {
|
|
39111
39117
|
return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir);
|
|
39112
|
-
})) === null ||
|
|
39118
|
+
})) === null || _f === void 0 ? void 0 : _f.join("\n")
|
|
39113
39119
|
},
|
|
39114
39120
|
needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
|
|
39115
|
-
})] : []), false)
|
|
39116
|
-
envMode: "stagePerEnv",
|
|
39117
|
-
stage: "build",
|
|
39118
|
-
name: "Inventory report: deploy",
|
|
39119
|
-
script: ["cd ".concat(context.componentConfig.dir), "yarn info --name-only --json "],
|
|
39120
|
-
variables: {}
|
|
39121
|
-
}], false);
|
|
39121
|
+
})] : []), false);
|
|
39122
39122
|
};
|
|
39123
39123
|
|
|
39124
39124
|
exports.createNodeBuildJobs = createNodeBuildJobs;
|
|
@@ -39831,7 +39831,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
39831
39831
|
|
|
39832
39832
|
exports.__esModule = true;
|
|
39833
39833
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
39834
|
-
exports.PIPELINE_IMAGE_TAG = "inventory-
|
|
39834
|
+
exports.PIPELINE_IMAGE_TAG = "inventory-2ef22dde" || 0;
|
|
39835
39835
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
39836
39836
|
|
|
39837
39837
|
/***/ }),
|
|
@@ -42193,6 +42193,42 @@ __exportStar(__nccwpck_require__(223), exports);
|
|
|
42193
42193
|
|
|
42194
42194
|
/***/ }),
|
|
42195
42195
|
|
|
42196
|
+
/***/ 9572:
|
|
42197
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
42198
|
+
|
|
42199
|
+
"use strict";
|
|
42200
|
+
|
|
42201
|
+
|
|
42202
|
+
exports.__esModule = true;
|
|
42203
|
+
exports.createInventoryReporitngJob = exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX = void 0;
|
|
42204
|
+
|
|
42205
|
+
var lodash_1 = __nccwpck_require__(3255);
|
|
42206
|
+
|
|
42207
|
+
exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX = "__inventory_dependencies";
|
|
42208
|
+
|
|
42209
|
+
var createInventoryReporitngJob = function (context) {
|
|
42210
|
+
var inventoryTemplate = {
|
|
42211
|
+
appName: context.fullConfig.appName,
|
|
42212
|
+
customerName: context.fullConfig.customerName,
|
|
42213
|
+
componentName: context.componentName,
|
|
42214
|
+
environment: (0, lodash_1.pick)(context.environment, ["shortName", "fullName", "host", "url"]),
|
|
42215
|
+
build: context.componentConfig.build,
|
|
42216
|
+
deploy: context.componentConfig.deploy
|
|
42217
|
+
};
|
|
42218
|
+
var printDepsCommand = "echo '".concat(JSON.stringify(inventoryTemplate), "' | jq --argjson dependencies \"$(echo ").concat(exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX, " | jq -n '. |= [inputs]')\" '. + {dependencies: $dependencies}'");
|
|
42219
|
+
return {
|
|
42220
|
+
envMode: "jobPerEnv",
|
|
42221
|
+
name: "inventory:reporting",
|
|
42222
|
+
stage: "reporting",
|
|
42223
|
+
variables: {},
|
|
42224
|
+
script: [printDepsCommand]
|
|
42225
|
+
};
|
|
42226
|
+
};
|
|
42227
|
+
|
|
42228
|
+
exports.createInventoryReporitngJob = createInventoryReporitngJob;
|
|
42229
|
+
|
|
42230
|
+
/***/ }),
|
|
42231
|
+
|
|
42196
42232
|
/***/ 8974:
|
|
42197
42233
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
42198
42234
|
|
|
@@ -42695,6 +42731,8 @@ var context_1 = __nccwpck_require__(2041);
|
|
|
42695
42731
|
|
|
42696
42732
|
var deploy_1 = __nccwpck_require__(223);
|
|
42697
42733
|
|
|
42734
|
+
var reportingJob_1 = __nccwpck_require__(9572);
|
|
42735
|
+
|
|
42698
42736
|
var utils_1 = __nccwpck_require__(7461);
|
|
42699
42737
|
|
|
42700
42738
|
var makeGitlabJob_1 = __nccwpck_require__(5715);
|
|
@@ -42731,7 +42769,8 @@ var createRawJobs = function (context) {
|
|
|
42731
42769
|
var buildJobs = build_1.BUILD_TYPES[context.componentConfig.build.type].jobs(context);
|
|
42732
42770
|
var deployJobs = deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context);
|
|
42733
42771
|
var customJobs = getCustomJobs(context);
|
|
42734
|
-
|
|
42772
|
+
var reportInventoryJob = (0, reportingJob_1.createInventoryReporitngJob)(context);
|
|
42773
|
+
return __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(buildJobs), false), __read(deployJobs), false), __read(customJobs), false), [reportInventoryJob], false);
|
|
42735
42774
|
};
|
|
42736
42775
|
|
|
42737
42776
|
var getFullJobName = function (name, componentName, env) {
|
|
@@ -43554,7 +43593,7 @@ __exportStar(__nccwpck_require__(3146), exports);
|
|
|
43554
43593
|
|
|
43555
43594
|
exports.__esModule = true;
|
|
43556
43595
|
exports.BASE_STAGES = void 0;
|
|
43557
|
-
exports.BASE_STAGES = ["setup", "test", "build", "deploy", "verify", "rollback", "stop", "
|
|
43596
|
+
exports.BASE_STAGES = ["setup", "test", "build", "deploy", "verify", "rollback", "stop", "reporting"];
|
|
43558
43597
|
|
|
43559
43598
|
/***/ }),
|
|
43560
43599
|
|
|
@@ -349461,12 +349461,14 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
349461
349461
|
};
|
|
349462
349462
|
|
|
349463
349463
|
exports.__esModule = true;
|
|
349464
|
-
exports.createBuildJob = void 0;
|
|
349464
|
+
exports.createBuildJob = exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = void 0;
|
|
349465
349465
|
|
|
349466
349466
|
var lodash_1 = __nccwpck_require__(23255);
|
|
349467
349467
|
|
|
349468
349468
|
var __1 = __nccwpck_require__(25355);
|
|
349469
349469
|
|
|
349470
|
+
var reportingJob_1 = __nccwpck_require__(89572);
|
|
349471
|
+
|
|
349470
349472
|
var utils_1 = __nccwpck_require__(37461);
|
|
349471
349473
|
|
|
349472
349474
|
var yarn_1 = __nccwpck_require__(10464);
|
|
@@ -349475,6 +349477,8 @@ var constants_1 = __nccwpck_require__(11542);
|
|
|
349475
349477
|
|
|
349476
349478
|
var getBuildInfo_1 = __nccwpck_require__(9197);
|
|
349477
349479
|
|
|
349480
|
+
exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES = reportingJob_1.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX + "_app.json";
|
|
349481
|
+
|
|
349478
349482
|
var createBuildJob = function (context, _a) {
|
|
349479
349483
|
var _b, _c;
|
|
349480
349484
|
|
|
@@ -349492,7 +349496,7 @@ var createBuildJob = function (context, _a) {
|
|
|
349492
349496
|
variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
|
|
349493
349497
|
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
|
|
349494
349498
|
artifacts: {
|
|
349495
|
-
paths: [context.componentConfig.dir + "/__build_info.json"]
|
|
349499
|
+
paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + exports.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES]
|
|
349496
349500
|
}
|
|
349497
349501
|
}, def);
|
|
349498
349502
|
};
|
|
@@ -349846,7 +349850,7 @@ var constants_2 = __nccwpck_require__(69284);
|
|
|
349846
349850
|
var yarn_1 = __nccwpck_require__(10464);
|
|
349847
349851
|
|
|
349848
349852
|
var createNodeBuildJobs = function (context) {
|
|
349849
|
-
var _a, _b, _c, _d, _e;
|
|
349853
|
+
var _a, _b, _c, _d, _e, _f;
|
|
349850
349854
|
|
|
349851
349855
|
var buildConfig = context.componentConfig.build;
|
|
349852
349856
|
|
|
@@ -349855,17 +349859,19 @@ var createNodeBuildJobs = function (context) {
|
|
|
349855
349859
|
}
|
|
349856
349860
|
|
|
349857
349861
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
349862
|
+
var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
|
|
349863
|
+
var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + createBuildJob_1.ARTIFACT_INVENTORY_BUILD_APP_DEPENDENCIES;
|
|
349858
349864
|
var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
|
|
349859
349865
|
variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
|
|
349860
349866
|
cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
349861
|
-
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((
|
|
349867
|
+
script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), [yarnReportDependenciesCommand], false),
|
|
349862
349868
|
artifacts: {
|
|
349863
|
-
paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((
|
|
349869
|
+
paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
|
|
349864
349870
|
return (0, path_1.join)(context.componentConfig.dir, path);
|
|
349865
|
-
})) !== null &&
|
|
349871
|
+
})) !== null && _d !== void 0 ? _d : []), false)
|
|
349866
349872
|
}
|
|
349867
349873
|
}) : null;
|
|
349868
|
-
return __spreadArray(__spreadArray(
|
|
349874
|
+
return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
|
|
349869
349875
|
script: [buildConfig.type === "node-static" || buildConfig.type === "storybook" ? "ensureNginxDockerfile" : "ensureNodeDockerfile"],
|
|
349870
349876
|
cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context, "pull")), false),
|
|
349871
349877
|
variables: {
|
|
@@ -349877,18 +349883,12 @@ var createNodeBuildJobs = function (context) {
|
|
|
349877
349883
|
prodOnly: true,
|
|
349878
349884
|
noScripts: true
|
|
349879
349885
|
}),
|
|
349880
|
-
DOCKER_COPY_WORKSPACE_FILES: (
|
|
349886
|
+
DOCKER_COPY_WORKSPACE_FILES: (_f = (_e = context.packageManagerInfo) === null || _e === void 0 ? void 0 : _e.pathsToCopyInDocker.map(function (dir) {
|
|
349881
349887
|
return "COPY --chown=node:node ".concat(dir, " /app/").concat(dir);
|
|
349882
|
-
})) === null ||
|
|
349888
|
+
})) === null || _f === void 0 ? void 0 : _f.join("\n")
|
|
349883
349889
|
},
|
|
349884
349890
|
needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
|
|
349885
|
-
})] : []), false)
|
|
349886
|
-
envMode: "stagePerEnv",
|
|
349887
|
-
stage: "build",
|
|
349888
|
-
name: "Inventory report: deploy",
|
|
349889
|
-
script: ["cd ".concat(context.componentConfig.dir), "yarn info --name-only --json "],
|
|
349890
|
-
variables: {}
|
|
349891
|
-
}], false);
|
|
349891
|
+
})] : []), false);
|
|
349892
349892
|
};
|
|
349893
349893
|
|
|
349894
349894
|
exports.createNodeBuildJobs = createNodeBuildJobs;
|
|
@@ -350601,7 +350601,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
350601
350601
|
|
|
350602
350602
|
exports.__esModule = true;
|
|
350603
350603
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
350604
|
-
exports.PIPELINE_IMAGE_TAG = "inventory-
|
|
350604
|
+
exports.PIPELINE_IMAGE_TAG = "inventory-2ef22dde" || 0;
|
|
350605
350605
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
350606
350606
|
|
|
350607
350607
|
/***/ }),
|
|
@@ -352963,6 +352963,42 @@ __exportStar(__nccwpck_require__(90223), exports);
|
|
|
352963
352963
|
|
|
352964
352964
|
/***/ }),
|
|
352965
352965
|
|
|
352966
|
+
/***/ 89572:
|
|
352967
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
352968
|
+
|
|
352969
|
+
"use strict";
|
|
352970
|
+
|
|
352971
|
+
|
|
352972
|
+
exports.__esModule = true;
|
|
352973
|
+
exports.createInventoryReporitngJob = exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX = void 0;
|
|
352974
|
+
|
|
352975
|
+
var lodash_1 = __nccwpck_require__(23255);
|
|
352976
|
+
|
|
352977
|
+
exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX = "__inventory_dependencies";
|
|
352978
|
+
|
|
352979
|
+
var createInventoryReporitngJob = function (context) {
|
|
352980
|
+
var inventoryTemplate = {
|
|
352981
|
+
appName: context.fullConfig.appName,
|
|
352982
|
+
customerName: context.fullConfig.customerName,
|
|
352983
|
+
componentName: context.componentName,
|
|
352984
|
+
environment: (0, lodash_1.pick)(context.environment, ["shortName", "fullName", "host", "url"]),
|
|
352985
|
+
build: context.componentConfig.build,
|
|
352986
|
+
deploy: context.componentConfig.deploy
|
|
352987
|
+
};
|
|
352988
|
+
var printDepsCommand = "echo '".concat(JSON.stringify(inventoryTemplate), "' | jq --argjson dependencies \"$(echo ").concat(exports.INVENTORY_DEPENDENCIES_ARTIFACTS_PREFIX, " | jq -n '. |= [inputs]')\" '. + {dependencies: $dependencies}'");
|
|
352989
|
+
return {
|
|
352990
|
+
envMode: "jobPerEnv",
|
|
352991
|
+
name: "inventory:reporting",
|
|
352992
|
+
stage: "reporting",
|
|
352993
|
+
variables: {},
|
|
352994
|
+
script: [printDepsCommand]
|
|
352995
|
+
};
|
|
352996
|
+
};
|
|
352997
|
+
|
|
352998
|
+
exports.createInventoryReporitngJob = createInventoryReporitngJob;
|
|
352999
|
+
|
|
353000
|
+
/***/ }),
|
|
353001
|
+
|
|
352966
353002
|
/***/ 78974:
|
|
352967
353003
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
352968
353004
|
|
|
@@ -353465,6 +353501,8 @@ var context_1 = __nccwpck_require__(22041);
|
|
|
353465
353501
|
|
|
353466
353502
|
var deploy_1 = __nccwpck_require__(90223);
|
|
353467
353503
|
|
|
353504
|
+
var reportingJob_1 = __nccwpck_require__(89572);
|
|
353505
|
+
|
|
353468
353506
|
var utils_1 = __nccwpck_require__(37461);
|
|
353469
353507
|
|
|
353470
353508
|
var makeGitlabJob_1 = __nccwpck_require__(15715);
|
|
@@ -353501,7 +353539,8 @@ var createRawJobs = function (context) {
|
|
|
353501
353539
|
var buildJobs = build_1.BUILD_TYPES[context.componentConfig.build.type].jobs(context);
|
|
353502
353540
|
var deployJobs = deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context);
|
|
353503
353541
|
var customJobs = getCustomJobs(context);
|
|
353504
|
-
|
|
353542
|
+
var reportInventoryJob = (0, reportingJob_1.createInventoryReporitngJob)(context);
|
|
353543
|
+
return __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(buildJobs), false), __read(deployJobs), false), __read(customJobs), false), [reportInventoryJob], false);
|
|
353505
353544
|
};
|
|
353506
353545
|
|
|
353507
353546
|
var getFullJobName = function (name, componentName, env) {
|
|
@@ -354324,7 +354363,7 @@ __exportStar(__nccwpck_require__(63146), exports);
|
|
|
354324
354363
|
|
|
354325
354364
|
exports.__esModule = true;
|
|
354326
354365
|
exports.BASE_STAGES = void 0;
|
|
354327
|
-
exports.BASE_STAGES = ["setup", "test", "build", "deploy", "verify", "rollback", "stop", "
|
|
354366
|
+
exports.BASE_STAGES = ["setup", "test", "build", "deploy", "verify", "rollback", "stop", "reporting"];
|
|
354328
354367
|
|
|
354329
354368
|
/***/ }),
|
|
354330
354369
|
|