@catladder/cli 0.0.0-main-905a5c25 → 0.0.0-main-93f3e75d
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.
|
@@ -7881,7 +7881,7 @@ var createMainPipeline_1 = __nccwpck_require__(9192);
|
|
|
7881
7881
|
var getPipelineTriggerForGitlabChildPipeline_1 = __nccwpck_require__(7426);
|
|
7882
7882
|
function generatePipelineFiles(config, pipelineType, mode) {
|
|
7883
7883
|
return __awaiter(this, void 0, void 0, function () {
|
|
7884
|
-
var trigger, _a, jobs, mainPipeline, _b, jobs, mainPipeline;
|
|
7884
|
+
var trigger, _a, jobs, image, stages, variables, workflow, mainPipeline, _b, jobs, image, stages, variables, workflow, mainPipeline;
|
|
7885
7885
|
return __generator(this, function (_c) {
|
|
7886
7886
|
switch (_c.label) {
|
|
7887
7887
|
case 0:
|
|
@@ -7889,18 +7889,18 @@ function generatePipelineFiles(config, pipelineType, mode) {
|
|
|
7889
7889
|
trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
|
|
7890
7890
|
return [4 /*yield*/, (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config)];
|
|
7891
7891
|
case 1:
|
|
7892
|
-
_a = _c.sent(), jobs = _a.jobs, mainPipeline = __rest(_a, ["jobs"]);
|
|
7892
|
+
_a = _c.sent(), jobs = _a.jobs, image = _a.image, stages = _a.stages, variables = _a.variables, workflow = _a.workflow, mainPipeline = __rest(_a, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
7893
7893
|
// need to spread out the jobs, forgot why
|
|
7894
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({},
|
|
7894
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
7895
7895
|
case 2:
|
|
7896
7896
|
// need to spread out the jobs, forgot why
|
|
7897
7897
|
_c.sent();
|
|
7898
7898
|
return [3 /*break*/, 6];
|
|
7899
7899
|
case 3: return [4 /*yield*/, (0, createMainPipeline_1.createMainPipeline)(pipelineType, config)];
|
|
7900
7900
|
case 4:
|
|
7901
|
-
_b = _c.sent(), jobs = _b.jobs, mainPipeline = __rest(_b, ["jobs"]);
|
|
7901
|
+
_b = _c.sent(), jobs = _b.jobs, image = _b.image, stages = _b.stages, variables = _b.variables, workflow = _b.workflow, mainPipeline = __rest(_b, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
7902
7902
|
// need to spread out the jobs, forgot why
|
|
7903
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({},
|
|
7903
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
7904
7904
|
case 5:
|
|
7905
7905
|
// need to spread out the jobs, forgot why
|
|
7906
7906
|
_c.sent();
|
|
@@ -15305,7 +15305,7 @@ var createMainPipeline_1 = __nccwpck_require__(39192);
|
|
|
15305
15305
|
var getPipelineTriggerForGitlabChildPipeline_1 = __nccwpck_require__(7426);
|
|
15306
15306
|
function generatePipelineFiles(config, pipelineType, mode) {
|
|
15307
15307
|
return __awaiter(this, void 0, void 0, function () {
|
|
15308
|
-
var trigger, _a, jobs, mainPipeline, _b, jobs, mainPipeline;
|
|
15308
|
+
var trigger, _a, jobs, image, stages, variables, workflow, mainPipeline, _b, jobs, image, stages, variables, workflow, mainPipeline;
|
|
15309
15309
|
return __generator(this, function (_c) {
|
|
15310
15310
|
switch (_c.label) {
|
|
15311
15311
|
case 0:
|
|
@@ -15313,18 +15313,18 @@ function generatePipelineFiles(config, pipelineType, mode) {
|
|
|
15313
15313
|
trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
|
|
15314
15314
|
return [4 /*yield*/, (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config)];
|
|
15315
15315
|
case 1:
|
|
15316
|
-
_a = _c.sent(), jobs = _a.jobs, mainPipeline = __rest(_a, ["jobs"]);
|
|
15316
|
+
_a = _c.sent(), jobs = _a.jobs, image = _a.image, stages = _a.stages, variables = _a.variables, workflow = _a.workflow, mainPipeline = __rest(_a, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
15317
15317
|
// need to spread out the jobs, forgot why
|
|
15318
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({},
|
|
15318
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
15319
15319
|
case 2:
|
|
15320
15320
|
// need to spread out the jobs, forgot why
|
|
15321
15321
|
_c.sent();
|
|
15322
15322
|
return [3 /*break*/, 6];
|
|
15323
15323
|
case 3: return [4 /*yield*/, (0, createMainPipeline_1.createMainPipeline)(pipelineType, config)];
|
|
15324
15324
|
case 4:
|
|
15325
|
-
_b = _c.sent(), jobs = _b.jobs, mainPipeline = __rest(_b, ["jobs"]);
|
|
15325
|
+
_b = _c.sent(), jobs = _b.jobs, image = _b.image, stages = _b.stages, variables = _b.variables, workflow = _b.workflow, mainPipeline = __rest(_b, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
15326
15326
|
// need to spread out the jobs, forgot why
|
|
15327
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({},
|
|
15327
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
15328
15328
|
case 5:
|
|
15329
15329
|
// need to spread out the jobs, forgot why
|
|
15330
15330
|
_c.sent();
|
|
@@ -65,7 +65,7 @@ var createMainPipeline_1 = require("./createMainPipeline");
|
|
|
65
65
|
var getPipelineTriggerForGitlabChildPipeline_1 = require("./gitlab/getPipelineTriggerForGitlabChildPipeline");
|
|
66
66
|
function generatePipelineFiles(config, pipelineType, mode) {
|
|
67
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
-
var trigger, _a, jobs, mainPipeline, _b, jobs, mainPipeline;
|
|
68
|
+
var trigger, _a, jobs, image, stages, variables, workflow, mainPipeline, _b, jobs, image, stages, variables, workflow, mainPipeline;
|
|
69
69
|
return __generator(this, function (_c) {
|
|
70
70
|
switch (_c.label) {
|
|
71
71
|
case 0:
|
|
@@ -73,18 +73,18 @@ function generatePipelineFiles(config, pipelineType, mode) {
|
|
|
73
73
|
trigger = (0, getPipelineTriggerForGitlabChildPipeline_1.getPipelineTriggerForGitlabChildPipeline)();
|
|
74
74
|
return [4 /*yield*/, (0, createChildPipeline_1.createChildPipeline)(pipelineType, trigger, config)];
|
|
75
75
|
case 1:
|
|
76
|
-
_a = _c.sent(), jobs = _a.jobs, mainPipeline = __rest(_a, ["jobs"]);
|
|
76
|
+
_a = _c.sent(), jobs = _a.jobs, image = _a.image, stages = _a.stages, variables = _a.variables, workflow = _a.workflow, mainPipeline = __rest(_a, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
77
77
|
// need to spread out the jobs, forgot why
|
|
78
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({},
|
|
78
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)("__pipeline.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
79
79
|
case 2:
|
|
80
80
|
// need to spread out the jobs, forgot why
|
|
81
81
|
_c.sent();
|
|
82
82
|
return [3 /*break*/, 6];
|
|
83
83
|
case 3: return [4 /*yield*/, (0, createMainPipeline_1.createMainPipeline)(pipelineType, config)];
|
|
84
84
|
case 4:
|
|
85
|
-
_b = _c.sent(), jobs = _b.jobs, mainPipeline = __rest(_b, ["jobs"]);
|
|
85
|
+
_b = _c.sent(), jobs = _b.jobs, image = _b.image, stages = _b.stages, variables = _b.variables, workflow = _b.workflow, mainPipeline = __rest(_b, ["jobs", "image", "stages", "variables", "workflow"]);
|
|
86
86
|
// need to spread out the jobs, forgot why
|
|
87
|
-
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({},
|
|
87
|
+
return [4 /*yield*/, (0, writeFiles_1.writeYamlfile)(".gitlab-ci.yml", __assign(__assign({ image: image, stages: stages, variables: variables, workflow: workflow }, mainPipeline), jobs))];
|
|
88
88
|
case 5:
|
|
89
89
|
// need to spread out the jobs, forgot why
|
|
90
90
|
_c.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoD;AACpD,6DAA4D;AAC5D,2DAA0D;AAC1D,8GAA6G;AAC7G,SAAsB,qBAAqB,CACzC,MAAc,EACd,YAAe,EACf,IAAqB;;;;;;yBAEjB,CAAA,IAAI,KAAK,eAAe,CAAA,EAAxB,wBAAwB;oBACpB,OAAO,GAAG,IAAA,mFAAwC,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"generatePipelineFiles.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/generatePipelineFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoD;AACpD,6DAA4D;AAC5D,2DAA0D;AAC1D,8GAA6G;AAC7G,SAAsB,qBAAqB,CACzC,MAAc,EACd,YAAe,EACf,IAAqB;;;;;;yBAEjB,CAAA,IAAI,KAAK,eAAe,CAAA,EAAxB,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