@catladder/cli 0.0.0-main-2d11ff72 → 0.0.0-main-84dc1fbc
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.
|
@@ -40920,7 +40920,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40920
40920
|
|
|
40921
40921
|
exports.__esModule = true;
|
|
40922
40922
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40923
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40923
|
+
exports.PIPELINE_IMAGE_TAG = "main-84dc1fbc" || 0;
|
|
40924
40924
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40925
40925
|
|
|
40926
40926
|
/***/ }),
|
|
@@ -42764,7 +42764,7 @@ var getLabels_1 = __nccwpck_require__(486);
|
|
|
42764
42764
|
var getJobRunScriptForJob = function (context, jobName, wait) {
|
|
42765
42765
|
var commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
|
|
42766
42766
|
var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
42767
|
-
return "".concat((0, common_1.gcloudRunCmd)(
|
|
42767
|
+
return "".concat((0, common_1.gcloudRunCmd)(), " jobs execute ").concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
|
|
42768
42768
|
};
|
|
42769
42769
|
var getDeleteSchedulesScripts = function (context) {
|
|
42770
42770
|
var deployConfig = (0, common_1.getCloudRunDeployConfig)(context);
|
|
@@ -42787,7 +42787,7 @@ var getDeleteJobsScripts = function (context) {
|
|
|
42787
42787
|
var jobName = _a.jobName;
|
|
42788
42788
|
return [
|
|
42789
42789
|
// first delete all job executions. Otherwise delete might fail if one of those is still running
|
|
42790
|
-
"".concat((0, common_1.gcloudRunCmd)(
|
|
42790
|
+
"".concat((0, common_1.gcloudRunCmd)(), " jobs executions list ").concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} ").concat((0, common_1.gcloudRunCmd)(), " jobs executions delete {} --quiet ").concat(commonArgsString), "".concat((0, common_1.gcloudRunCmd)(), " jobs delete ").concat(jobName, " ").concat(commonArgsString)];
|
|
42791
42791
|
});
|
|
42792
42792
|
};
|
|
42793
42793
|
exports.getDeleteJobsScripts = getDeleteJobsScripts;
|
|
@@ -42830,7 +42830,7 @@ var getJobCreateScriptsForJob = function (context, jobName, job) {
|
|
|
42830
42830
|
"task-timeout": job.timeout || "10m"
|
|
42831
42831
|
}));
|
|
42832
42832
|
var argsString = "".concat(jobName, " ").concat(commonDeployArgsString);
|
|
42833
|
-
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(
|
|
42833
|
+
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(), " jobs create ").concat(argsString)])), false), ["".concat((0, common_1.gcloudRunCmd)(), " jobs update ").concat(argsString, " --env-vars-file=____envvars.yaml")], false);
|
|
42834
42834
|
};
|
|
42835
42835
|
var getCreateScheduleScripts = function (context) {
|
|
42836
42836
|
var jobsWithSchedule = getCloudRunJobsWithSchedule(context);
|
|
@@ -355470,7 +355470,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
355470
355470
|
|
|
355471
355471
|
exports.__esModule = true;
|
|
355472
355472
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
355473
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
355473
|
+
exports.PIPELINE_IMAGE_TAG = "main-84dc1fbc" || 0;
|
|
355474
355474
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
355475
355475
|
|
|
355476
355476
|
/***/ }),
|
|
@@ -357314,7 +357314,7 @@ var getLabels_1 = __nccwpck_require__(30486);
|
|
|
357314
357314
|
var getJobRunScriptForJob = function (context, jobName, wait) {
|
|
357315
357315
|
var commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
|
|
357316
357316
|
var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
357317
|
-
return "".concat((0, common_1.gcloudRunCmd)(
|
|
357317
|
+
return "".concat((0, common_1.gcloudRunCmd)(), " jobs execute ").concat(jobName, " ").concat(commonArgsString).concat(wait ? " --wait" : "");
|
|
357318
357318
|
};
|
|
357319
357319
|
var getDeleteSchedulesScripts = function (context) {
|
|
357320
357320
|
var deployConfig = (0, common_1.getCloudRunDeployConfig)(context);
|
|
@@ -357337,7 +357337,7 @@ var getDeleteJobsScripts = function (context) {
|
|
|
357337
357337
|
var jobName = _a.jobName;
|
|
357338
357338
|
return [
|
|
357339
357339
|
// first delete all job executions. Otherwise delete might fail if one of those is still running
|
|
357340
|
-
"".concat((0, common_1.gcloudRunCmd)(
|
|
357340
|
+
"".concat((0, common_1.gcloudRunCmd)(), " jobs executions list ").concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} ").concat((0, common_1.gcloudRunCmd)(), " jobs executions delete {} --quiet ").concat(commonArgsString), "".concat((0, common_1.gcloudRunCmd)(), " jobs delete ").concat(jobName, " ").concat(commonArgsString)];
|
|
357341
357341
|
});
|
|
357342
357342
|
};
|
|
357343
357343
|
exports.getDeleteJobsScripts = getDeleteJobsScripts;
|
|
@@ -357380,7 +357380,7 @@ var getJobCreateScriptsForJob = function (context, jobName, job) {
|
|
|
357380
357380
|
"task-timeout": job.timeout || "10m"
|
|
357381
357381
|
}));
|
|
357382
357382
|
var argsString = "".concat(jobName, " ").concat(commonDeployArgsString);
|
|
357383
|
-
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(
|
|
357383
|
+
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["".concat((0, common_1.gcloudRunCmd)(), " jobs create ").concat(argsString)])), false), ["".concat((0, common_1.gcloudRunCmd)(), " jobs update ").concat(argsString, " --env-vars-file=____envvars.yaml")], false);
|
|
357384
357384
|
};
|
|
357385
357385
|
var getCreateScheduleScripts = function (context) {
|
|
357386
357386
|
var jobsWithSchedule = getCloudRunJobsWithSchedule(context);
|
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"license": "MIT",
|
|
55
|
-
"version": "0.0.0-main-
|
|
55
|
+
"version": "0.0.0-main-84dc1fbc",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"lint": "eslint \"src/**/*.ts\"",
|
|
58
58
|
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"node": ">=12.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@catladder/pipeline": "0.0.0-main-
|
|
76
|
+
"@catladder/pipeline": "0.0.0-main-84dc1fbc",
|
|
77
77
|
"@kubernetes/client-node": "^0.16.2",
|
|
78
78
|
"@tsconfig/node14": "^1.0.1",
|
|
79
79
|
"@types/common-tags": "^1.8.0",
|