@catladder/cli 0.0.0-next-5e72454b → 0.0.0-next-aff40897
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 +94 -77
- package/dist/bundles/cli/index.js +86 -69
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +1 -2
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -1
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -4
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js.map +1 -1
- package/dist/pipeline/src/build/base/index.d.ts +1 -2
- package/dist/pipeline/src/build/base/index.js.map +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +3 -2
- package/dist/pipeline/src/build/cache/createJobCache.js +2 -2
- package/dist/pipeline/src/build/cache/createJobCache.js.map +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +2 -2
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +4 -7
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -1
- package/dist/pipeline/src/build/docker.d.ts +2 -3
- package/dist/pipeline/src/build/docker.js.map +1 -1
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -2
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -1
- package/dist/pipeline/src/build/types.d.ts +6 -0
- package/dist/pipeline/src/build/types.js.map +1 -1
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/deploy.js +4 -1
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -1
- package/dist/pipeline/src/deploy/base/index.d.ts +1 -3
- package/dist/pipeline/src/deploy/base/index.js.map +1 -1
- package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/rollback.js.map +1 -1
- package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +70 -55
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +6 -4
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -1
- package/dist/pipeline/src/deploy/types/custom.d.ts +2 -6
- package/dist/pipeline/src/deploy/types/index.d.ts +3 -3
- package/dist/pipeline/src/types/config.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.d.ts +7 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1059,7 +1059,7 @@ const lodash_1 = __nccwpck_require__(3255);
|
|
|
1059
1059
|
const __1 = __nccwpck_require__(603);
|
|
1060
1060
|
const utils_1 = __nccwpck_require__(2497);
|
|
1061
1061
|
const createBuildJobArtifact_1 = __nccwpck_require__(8774);
|
|
1062
|
-
const createJobCache_1 = __nccwpck_require__(
|
|
1062
|
+
const createJobCache_1 = __nccwpck_require__(340);
|
|
1063
1063
|
const yarn_1 = __nccwpck_require__(5043);
|
|
1064
1064
|
const constants_1 = __nccwpck_require__(2786);
|
|
1065
1065
|
const writeBuildInfo_1 = __nccwpck_require__(9578);
|
|
@@ -1298,7 +1298,7 @@ exports.componentContextNeedsBuildTimeDotEnv = componentContextNeedsBuildTimeDot
|
|
|
1298
1298
|
|
|
1299
1299
|
/***/ }),
|
|
1300
1300
|
|
|
1301
|
-
/***/
|
|
1301
|
+
/***/ 340:
|
|
1302
1302
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1303
1303
|
|
|
1304
1304
|
"use strict";
|
|
@@ -1354,8 +1354,8 @@ const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
exports.createJobCacheFromCacheConfigs = createJobCacheFromCacheConfigs;
|
|
1356
1356
|
/** shortcut, used in some build types */
|
|
1357
|
-
const createJobCacheFromConfig = (context,
|
|
1358
|
-
return (0, exports.createJobCacheFromCacheConfigs)(context, (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context,
|
|
1357
|
+
const createJobCacheFromConfig = (context, configWithCache) => {
|
|
1358
|
+
return (0, exports.createJobCacheFromCacheConfigs)(context, (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context, configWithCache));
|
|
1359
1359
|
};
|
|
1360
1360
|
exports.createJobCacheFromConfig = createJobCacheFromConfig;
|
|
1361
1361
|
//# sourceMappingURL=createJobCache.js.map
|
|
@@ -1371,15 +1371,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1371
1371
|
exports.getAllCacheConfigsFromConfig = void 0;
|
|
1372
1372
|
const index_1 = __nccwpck_require__(2497);
|
|
1373
1373
|
const transformLegacyJobCache_1 = __nccwpck_require__(6673);
|
|
1374
|
-
const getAllCacheConfigsFromConfig = (context,
|
|
1374
|
+
const getAllCacheConfigsFromConfig = (context, configWithCache) => {
|
|
1375
1375
|
return [
|
|
1376
|
-
...("jobCache" in
|
|
1377
|
-
? (0, transformLegacyJobCache_1.transformLegacyJobCache)(
|
|
1376
|
+
...("jobCache" in configWithCache
|
|
1377
|
+
? (0, transformLegacyJobCache_1.transformLegacyJobCache)(configWithCache.jobCache)
|
|
1378
1378
|
: []),
|
|
1379
|
-
...(0, index_1.ensureArray)(
|
|
1380
|
-
...c,
|
|
1381
|
-
context,
|
|
1382
|
-
})),
|
|
1379
|
+
...(0, index_1.ensureArray)(configWithCache.cache),
|
|
1383
1380
|
...(context.type === "workspace"
|
|
1384
1381
|
? // also add cache configs of the components of that workspace
|
|
1385
1382
|
context.components.flatMap((componentContext) => {
|
|
@@ -1478,7 +1475,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1478
1475
|
exports.createCustomTestJobs = void 0;
|
|
1479
1476
|
const utils_1 = __nccwpck_require__(2497);
|
|
1480
1477
|
const createArtifactsConfig_1 = __nccwpck_require__(2820);
|
|
1481
|
-
const createJobCache_1 = __nccwpck_require__(
|
|
1478
|
+
const createJobCache_1 = __nccwpck_require__(340);
|
|
1482
1479
|
const types_1 = __nccwpck_require__(4466);
|
|
1483
1480
|
const RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
1484
1481
|
KUBERNETES_CPU_REQUEST: "0.45",
|
|
@@ -1562,7 +1559,7 @@ const artifactsRegistry_1 = __nccwpck_require__(4963);
|
|
|
1562
1559
|
const gcloudServiceAccountLoginCommands_1 = __nccwpck_require__(6320);
|
|
1563
1560
|
const runner_1 = __nccwpck_require__(4058);
|
|
1564
1561
|
const gitlab_1 = __nccwpck_require__(8490);
|
|
1565
|
-
const createJobCache_1 = __nccwpck_require__(
|
|
1562
|
+
const createJobCache_1 = __nccwpck_require__(340);
|
|
1566
1563
|
const DOCKER_BUILD_RUNNER_REQUESTS = {
|
|
1567
1564
|
KUBERNETES_CPU_REQUEST: "0.45",
|
|
1568
1565
|
KUBERNETES_MEMORY_REQUEST: "1Gi",
|
|
@@ -2045,7 +2042,7 @@ const createArtifactsConfig_1 = __nccwpck_require__(2820);
|
|
|
2045
2042
|
const cache_1 = __nccwpck_require__(2026);
|
|
2046
2043
|
const constants_1 = __nccwpck_require__(1765);
|
|
2047
2044
|
const yarn_1 = __nccwpck_require__(5043);
|
|
2048
|
-
const createJobCache_1 = __nccwpck_require__(
|
|
2045
|
+
const createJobCache_1 = __nccwpck_require__(340);
|
|
2049
2046
|
const createNodeTestJobs = (context) => {
|
|
2050
2047
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
2051
2048
|
// don't run tests after release
|
|
@@ -3257,6 +3254,7 @@ exports.BASE_RETRY = {
|
|
|
3257
3254
|
|
|
3258
3255
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3259
3256
|
exports.createDeployJob = exports.DEPLOY_JOB_NAME = void 0;
|
|
3257
|
+
const createJobCache_1 = __nccwpck_require__(340);
|
|
3260
3258
|
const docker_1 = __nccwpck_require__(9641);
|
|
3261
3259
|
const sbom_1 = __nccwpck_require__(7038);
|
|
3262
3260
|
const context_1 = __nccwpck_require__(1724);
|
|
@@ -3288,7 +3286,9 @@ const createDeployJob = (context, jobDefinition) => {
|
|
|
3288
3286
|
name: exports.DEPLOY_JOB_NAME,
|
|
3289
3287
|
script: jobDefinition.script,
|
|
3290
3288
|
image: jobDefinition.image,
|
|
3291
|
-
cache: jobDefinition.cache
|
|
3289
|
+
cache: jobDefinition.cache
|
|
3290
|
+
? (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, jobDefinition.cache)
|
|
3291
|
+
: undefined,
|
|
3292
3292
|
artifacts: jobDefinition.artifacts,
|
|
3293
3293
|
services: jobDefinition.services,
|
|
3294
3294
|
envMode: "stagePerEnv", // makes it easier to run manual tasks er env
|
|
@@ -3686,13 +3686,13 @@ exports.getDeleteUnusedRevisionsCommands = getDeleteUnusedRevisionsCommands;
|
|
|
3686
3686
|
|
|
3687
3687
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3688
3688
|
exports.getCreateScheduleScripts = exports.getJobCreateScripts = exports.getJobRunScripts = exports.getDeleteJobsScripts = exports.getDeleteSchedulesScripts = void 0;
|
|
3689
|
-
const gitlab_1 = __nccwpck_require__(8490);
|
|
3690
3689
|
const createArgsString_1 = __nccwpck_require__(9598);
|
|
3691
3690
|
const jobName_1 = __nccwpck_require__(9626);
|
|
3692
3691
|
const common_1 = __nccwpck_require__(3325);
|
|
3693
3692
|
const getLabels_1 = __nccwpck_require__(920);
|
|
3694
3693
|
const volumes_1 = __nccwpck_require__(847);
|
|
3695
3694
|
const constants_1 = __nccwpck_require__(8865);
|
|
3695
|
+
const utils_1 = __nccwpck_require__(2497);
|
|
3696
3696
|
const getJobRunScriptForJob = (context, jobName, wait) => {
|
|
3697
3697
|
const commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
|
|
3698
3698
|
const commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
@@ -3734,76 +3734,90 @@ const getJobRunScripts = (context, when) => {
|
|
|
3734
3734
|
["preStop", "postStop"].includes(when)));
|
|
3735
3735
|
};
|
|
3736
3736
|
exports.getJobRunScripts = getJobRunScripts;
|
|
3737
|
-
const getJobCreateScripts = (context) => {
|
|
3738
|
-
const
|
|
3739
|
-
|
|
3740
|
-
.
|
|
3741
|
-
|
|
3742
|
-
};
|
|
3743
|
-
exports.getJobCreateScripts = getJobCreateScripts;
|
|
3744
|
-
const getJobCreateScriptsForJob = (context, jobName, job) => {
|
|
3745
|
-
const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
|
|
3746
|
-
// due to some oversight from google, jobs create does not yet accept `--add-volume` 🤦
|
|
3747
|
-
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
3748
|
-
// we cannot upsert a job, so we have to create it and catch the error and then update
|
|
3749
|
-
const commandArray = Array.isArray(job.command)
|
|
3750
|
-
? job.command
|
|
3751
|
-
: job.command.split(" ");
|
|
3737
|
+
const getJobCreateScripts = (context) => getCloudRunJobsWithNames(context).map(({ job: { command, image, cpu, memory = "512Mi", timeout = "10m", parallelism = 1, volumes, }, jobName, }, jobIndex) => {
|
|
3738
|
+
const commandArray = Array.isArray(command)
|
|
3739
|
+
? command
|
|
3740
|
+
: command.split(" ");
|
|
3741
|
+
const { image: commonImage, project, region, ...deployArgs } = (0, common_1.getCommonDeployArgs)(context);
|
|
3752
3742
|
const commonDeployArgsString = (0, createArgsString_1.createArgsString)({
|
|
3753
|
-
command:
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
"task-timeout": job.timeout || "10m",
|
|
3763
|
-
parallelism: job.parallelism || 1,
|
|
3743
|
+
command: `"${commandArray.join(",")}"`,
|
|
3744
|
+
labels: `"${(0, common_1.makeLabelString)((0, getLabels_1.getLabels)(context))},cloud-run-job-name=$current_job_name"`,
|
|
3745
|
+
image: `"${image !== null && image !== void 0 ? image : commonImage}"`,
|
|
3746
|
+
project,
|
|
3747
|
+
region,
|
|
3748
|
+
cpu,
|
|
3749
|
+
memory,
|
|
3750
|
+
parallelism,
|
|
3751
|
+
"task-timeout": timeout,
|
|
3764
3752
|
"env-vars-file": constants_1.ENV_VARS_FILENAME,
|
|
3765
3753
|
"max-retries": 0,
|
|
3754
|
+
...deployArgs,
|
|
3766
3755
|
});
|
|
3767
|
-
|
|
3768
|
-
|
|
3756
|
+
// due to some oversight from google, jobs create does not yet accept `--add-volume` 🤦
|
|
3757
|
+
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
3758
|
+
// we cannot upsert a job, so we have to create it and catch the error and then update
|
|
3759
|
+
const hasVolumes = Object.keys(volumes || {}).length > 0;
|
|
3760
|
+
const needsBeta = hasVolumes ? "beta" : undefined;
|
|
3761
|
+
const volumeArgs = hasVolumes
|
|
3762
|
+
? (0, createArgsString_1.createArgsString)(...(0, volumes_1.createVolumeConfig)(volumes, "job"))
|
|
3763
|
+
: "";
|
|
3769
3764
|
return [
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
}
|
|
3765
|
+
jobIndex === 0
|
|
3766
|
+
? `exist_job_names="$(\n ${(0, common_1.gcloudRunCmd)()} jobs list --filter='metadata.name ~ ${context.env}.*${context.name}' --format='value(name)' --limit=999 --project='${project}' --region='${region}'\n)"`
|
|
3767
|
+
: null,
|
|
3768
|
+
`current_job_name="${jobName}"`,
|
|
3769
|
+
'if grep "$current_job_name" <<<"$exist_job_names" >/dev/null; then',
|
|
3770
|
+
` ${(0, common_1.gcloudRunCmd)(needsBeta)} jobs update "$current_job_name" ${commonDeployArgsString} ${volumeArgs}`,
|
|
3771
|
+
"else",
|
|
3772
|
+
` ${(0, common_1.gcloudRunCmd)()} jobs create "$current_job_name" ${commonDeployArgsString}`,
|
|
3773
|
+
"fi",
|
|
3774
|
+
]
|
|
3775
|
+
.filter(utils_1.notNil)
|
|
3776
|
+
.join("\n");
|
|
3777
|
+
});
|
|
3778
|
+
exports.getJobCreateScripts = getJobCreateScripts;
|
|
3774
3779
|
const getCreateScheduleScripts = (context) => {
|
|
3775
3780
|
const jobsWithSchedule = getCloudRunJobsWithSchedule(context);
|
|
3776
|
-
const
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3781
|
+
const { region: location, projectId: project } = (0, common_1.getCloudRunDeployConfig)(context);
|
|
3782
|
+
const uriBase = `https://${location}-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/${project}/jobs`;
|
|
3783
|
+
const gcloudArgs = {
|
|
3784
|
+
project,
|
|
3785
|
+
location,
|
|
3786
|
+
uri: `"$current_job_uri"`,
|
|
3787
|
+
"http-method": "POST",
|
|
3788
|
+
"oauth-service-account-email": `"$GCLOUD_PROJECT_NUMBER-compute@developer.gserviceaccount.com"`,
|
|
3789
|
+
};
|
|
3790
|
+
return jobsWithSchedule.map(({ job: { maxRetryAttempts, schedule }, jobName, schedulerName }, jobIndex) => {
|
|
3780
3791
|
const argsString = (0, createArgsString_1.createArgsString)({
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
"max-retry-attempts": (_a = job.maxRetryAttempts) !== null && _a !== void 0 ? _a : 0,
|
|
3785
|
-
uri: `"https://${deployConfig.region}-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/${deployConfig.projectId}/jobs/${jobName}:run"`,
|
|
3786
|
-
"http-method": "POST",
|
|
3787
|
-
"oauth-service-account-email": "$GCLOUD_PROJECT_NUMBER-compute@developer.gserviceaccount.com",
|
|
3792
|
+
...gcloudArgs,
|
|
3793
|
+
schedule: `"${schedule}"`,
|
|
3794
|
+
"max-retry-attempts": maxRetryAttempts !== null && maxRetryAttempts !== void 0 ? maxRetryAttempts : 0,
|
|
3788
3795
|
});
|
|
3789
|
-
const commonArgs = `http ${schedulerName} ${argsString}`;
|
|
3790
3796
|
return [
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3797
|
+
jobIndex === 0
|
|
3798
|
+
? `exist_scheduler_names="$(\n ${(0, common_1.gcloudSchedulerCmd)()} jobs list --filter='httpTarget.uri ~ ${context.env}.*${context.name}' --format='value(name)' --limit=999 --location='${location}' --project='${project}'\n)"`
|
|
3799
|
+
: null,
|
|
3800
|
+
`current_job_uri="${uriBase}/${jobName}:run"`,
|
|
3801
|
+
`current_scheduler_name="${schedulerName}"`,
|
|
3802
|
+
`if grep "$current_scheduler_name" <<<"$exist_scheduler_names" >/dev/null; then`,
|
|
3803
|
+
` ${(0, common_1.gcloudSchedulerCmd)()} jobs update http "$current_scheduler_name" ${argsString}`,
|
|
3804
|
+
`else`,
|
|
3805
|
+
` ${(0, common_1.gcloudSchedulerCmd)()} jobs create http "$current_scheduler_name" ${argsString}`,
|
|
3806
|
+
`fi`,
|
|
3807
|
+
]
|
|
3808
|
+
.filter(utils_1.notNil)
|
|
3809
|
+
.join("\n");
|
|
3810
|
+
});
|
|
3798
3811
|
};
|
|
3799
3812
|
exports.getCreateScheduleScripts = getCreateScheduleScripts;
|
|
3800
3813
|
const getCloudRunJobsWithSchedule = (context) => {
|
|
3801
3814
|
const jobsWithNames = getCloudRunJobsWithNames(context);
|
|
3802
3815
|
return jobsWithNames
|
|
3803
3816
|
.filter((entry) => entry.job.when === "schedule")
|
|
3804
|
-
.map(({ job, jobName }) => ({
|
|
3817
|
+
.map(({ job, jobName, jobKey }) => ({
|
|
3805
3818
|
job,
|
|
3806
3819
|
jobName,
|
|
3820
|
+
jobKey,
|
|
3807
3821
|
schedulerName: jobName.concat("-scheduler"),
|
|
3808
3822
|
}));
|
|
3809
3823
|
};
|
|
@@ -3814,9 +3828,10 @@ const getCloudRunJobsWithNames = (context) => {
|
|
|
3814
3828
|
const jobsWithNames = Object.entries((_a = deployConfig.jobs) !== null && _a !== void 0 ? _a : {})
|
|
3815
3829
|
// filter out disabled jobs
|
|
3816
3830
|
.filter((entry) => Boolean(entry[1]))
|
|
3817
|
-
.map(([
|
|
3818
|
-
jobName: getFullJobName(
|
|
3831
|
+
.map(([jobKey, job]) => ({
|
|
3832
|
+
jobName: getFullJobName(jobKey),
|
|
3819
3833
|
job,
|
|
3834
|
+
jobKey,
|
|
3820
3835
|
}));
|
|
3821
3836
|
return jobsWithNames;
|
|
3822
3837
|
};
|
|
@@ -4417,13 +4432,14 @@ exports.getFullDbName = getFullDbName;
|
|
|
4417
4432
|
|
|
4418
4433
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4419
4434
|
exports.createCustomDeployJobs = void 0;
|
|
4435
|
+
const getAllCacheConfigsFromConfig_1 = __nccwpck_require__(673);
|
|
4420
4436
|
const yarn_1 = __nccwpck_require__(5043);
|
|
4421
4437
|
const runner_1 = __nccwpck_require__(4058);
|
|
4422
4438
|
const base_1 = __nccwpck_require__(2024);
|
|
4423
4439
|
const sbom_1 = __nccwpck_require__(4986);
|
|
4424
4440
|
const types_1 = __nccwpck_require__(5781);
|
|
4425
4441
|
const createCustomDeployJobs = (context) => {
|
|
4426
|
-
var _a, _b, _c
|
|
4442
|
+
var _a, _b, _c;
|
|
4427
4443
|
const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
|
|
4428
4444
|
if (!(0, types_1.isOfDeployType)(deployConfig, "custom")) {
|
|
4429
4445
|
// should not happen
|
|
@@ -4433,10 +4449,10 @@ const createCustomDeployJobs = (context) => {
|
|
|
4433
4449
|
const yarnInstall = (0, yarn_1.getYarnInstall)(context, {
|
|
4434
4450
|
noCustomPostInstall: true,
|
|
4435
4451
|
});
|
|
4436
|
-
|
|
4452
|
+
const result = (0, base_1.createDeployementJobs)(context, {
|
|
4437
4453
|
deploy: {
|
|
4438
4454
|
image: (_b = deployConfig.jobImage) !== null && _b !== void 0 ? _b : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
4439
|
-
cache: (
|
|
4455
|
+
cache: (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context, deployConfig),
|
|
4440
4456
|
script: [
|
|
4441
4457
|
`cd ${context.build.dir}`,
|
|
4442
4458
|
...(deployConfig.requiresYarnInstall ? yarnInstall : []),
|
|
@@ -4447,7 +4463,7 @@ const createCustomDeployJobs = (context) => {
|
|
|
4447
4463
|
},
|
|
4448
4464
|
stop: deployConfig.stopScript
|
|
4449
4465
|
? {
|
|
4450
|
-
image: (
|
|
4466
|
+
image: (_c = deployConfig.jobImage) !== null && _c !== void 0 ? _c : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
4451
4467
|
script: [
|
|
4452
4468
|
...deployConfig.stopScript,
|
|
4453
4469
|
...(0, sbom_1.getDependencyTrackDeleteScript)(context),
|
|
@@ -4456,6 +4472,7 @@ const createCustomDeployJobs = (context) => {
|
|
|
4456
4472
|
}
|
|
4457
4473
|
: undefined,
|
|
4458
4474
|
});
|
|
4475
|
+
return result;
|
|
4459
4476
|
};
|
|
4460
4477
|
exports.createCustomDeployJobs = createCustomDeployJobs;
|
|
4461
4478
|
//# sourceMappingURL=deployJob.js.map
|
|
@@ -42631,7 +42648,7 @@ var Scalar = __nccwpck_require__(9387);
|
|
|
42631
42648
|
var YAMLMap = __nccwpck_require__(1030);
|
|
42632
42649
|
var YAMLSeq = __nccwpck_require__(1936);
|
|
42633
42650
|
var cst = __nccwpck_require__(8164);
|
|
42634
|
-
var lexer = __nccwpck_require__(
|
|
42651
|
+
var lexer = __nccwpck_require__(2269);
|
|
42635
42652
|
var lineCounter = __nccwpck_require__(4211);
|
|
42636
42653
|
var parser = __nccwpck_require__(4639);
|
|
42637
42654
|
var publicApi = __nccwpck_require__(3019);
|
|
@@ -44124,7 +44141,7 @@ exports.tokenType = tokenType;
|
|
|
44124
44141
|
|
|
44125
44142
|
/***/ }),
|
|
44126
44143
|
|
|
44127
|
-
/***/
|
|
44144
|
+
/***/ 2269:
|
|
44128
44145
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
44129
44146
|
|
|
44130
44147
|
"use strict";
|
|
@@ -44911,7 +44928,7 @@ exports.LineCounter = LineCounter;
|
|
|
44911
44928
|
|
|
44912
44929
|
|
|
44913
44930
|
var cst = __nccwpck_require__(8164);
|
|
44914
|
-
var lexer = __nccwpck_require__(
|
|
44931
|
+
var lexer = __nccwpck_require__(2269);
|
|
44915
44932
|
|
|
44916
44933
|
function includesToken(list, type) {
|
|
44917
44934
|
for (let i = 0; i < list.length; ++i)
|
|
@@ -4520,8 +4520,8 @@ const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
|
4520
4520
|
};
|
|
4521
4521
|
exports.createJobCacheFromCacheConfigs = createJobCacheFromCacheConfigs;
|
|
4522
4522
|
/** shortcut, used in some build types */
|
|
4523
|
-
const createJobCacheFromConfig = (context,
|
|
4524
|
-
return (0, exports.createJobCacheFromCacheConfigs)(context, (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context,
|
|
4523
|
+
const createJobCacheFromConfig = (context, configWithCache) => {
|
|
4524
|
+
return (0, exports.createJobCacheFromCacheConfigs)(context, (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context, configWithCache));
|
|
4525
4525
|
};
|
|
4526
4526
|
exports.createJobCacheFromConfig = createJobCacheFromConfig;
|
|
4527
4527
|
//# sourceMappingURL=createJobCache.js.map
|
|
@@ -4537,15 +4537,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4537
4537
|
exports.getAllCacheConfigsFromConfig = void 0;
|
|
4538
4538
|
const index_1 = __nccwpck_require__(32497);
|
|
4539
4539
|
const transformLegacyJobCache_1 = __nccwpck_require__(96673);
|
|
4540
|
-
const getAllCacheConfigsFromConfig = (context,
|
|
4540
|
+
const getAllCacheConfigsFromConfig = (context, configWithCache) => {
|
|
4541
4541
|
return [
|
|
4542
|
-
...("jobCache" in
|
|
4543
|
-
? (0, transformLegacyJobCache_1.transformLegacyJobCache)(
|
|
4542
|
+
...("jobCache" in configWithCache
|
|
4543
|
+
? (0, transformLegacyJobCache_1.transformLegacyJobCache)(configWithCache.jobCache)
|
|
4544
4544
|
: []),
|
|
4545
|
-
...(0, index_1.ensureArray)(
|
|
4546
|
-
...c,
|
|
4547
|
-
context,
|
|
4548
|
-
})),
|
|
4545
|
+
...(0, index_1.ensureArray)(configWithCache.cache),
|
|
4549
4546
|
...(context.type === "workspace"
|
|
4550
4547
|
? // also add cache configs of the components of that workspace
|
|
4551
4548
|
context.components.flatMap((componentContext) => {
|
|
@@ -6423,6 +6420,7 @@ exports.BASE_RETRY = {
|
|
|
6423
6420
|
|
|
6424
6421
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6425
6422
|
exports.createDeployJob = exports.DEPLOY_JOB_NAME = void 0;
|
|
6423
|
+
const createJobCache_1 = __nccwpck_require__(10340);
|
|
6426
6424
|
const docker_1 = __nccwpck_require__(9641);
|
|
6427
6425
|
const sbom_1 = __nccwpck_require__(37038);
|
|
6428
6426
|
const context_1 = __nccwpck_require__(61724);
|
|
@@ -6454,7 +6452,9 @@ const createDeployJob = (context, jobDefinition) => {
|
|
|
6454
6452
|
name: exports.DEPLOY_JOB_NAME,
|
|
6455
6453
|
script: jobDefinition.script,
|
|
6456
6454
|
image: jobDefinition.image,
|
|
6457
|
-
cache: jobDefinition.cache
|
|
6455
|
+
cache: jobDefinition.cache
|
|
6456
|
+
? (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, jobDefinition.cache)
|
|
6457
|
+
: undefined,
|
|
6458
6458
|
artifacts: jobDefinition.artifacts,
|
|
6459
6459
|
services: jobDefinition.services,
|
|
6460
6460
|
envMode: "stagePerEnv", // makes it easier to run manual tasks er env
|
|
@@ -6852,13 +6852,13 @@ exports.getDeleteUnusedRevisionsCommands = getDeleteUnusedRevisionsCommands;
|
|
|
6852
6852
|
|
|
6853
6853
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6854
6854
|
exports.getCreateScheduleScripts = exports.getJobCreateScripts = exports.getJobRunScripts = exports.getDeleteJobsScripts = exports.getDeleteSchedulesScripts = void 0;
|
|
6855
|
-
const gitlab_1 = __nccwpck_require__(38490);
|
|
6856
6855
|
const createArgsString_1 = __nccwpck_require__(49598);
|
|
6857
6856
|
const jobName_1 = __nccwpck_require__(9626);
|
|
6858
6857
|
const common_1 = __nccwpck_require__(73325);
|
|
6859
6858
|
const getLabels_1 = __nccwpck_require__(30920);
|
|
6860
6859
|
const volumes_1 = __nccwpck_require__(60847);
|
|
6861
6860
|
const constants_1 = __nccwpck_require__(38865);
|
|
6861
|
+
const utils_1 = __nccwpck_require__(32497);
|
|
6862
6862
|
const getJobRunScriptForJob = (context, jobName, wait) => {
|
|
6863
6863
|
const commonArgs = (0, common_1.getCommonCloudRunArgs)(context);
|
|
6864
6864
|
const commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
@@ -6900,76 +6900,90 @@ const getJobRunScripts = (context, when) => {
|
|
|
6900
6900
|
["preStop", "postStop"].includes(when)));
|
|
6901
6901
|
};
|
|
6902
6902
|
exports.getJobRunScripts = getJobRunScripts;
|
|
6903
|
-
const getJobCreateScripts = (context) => {
|
|
6904
|
-
const
|
|
6905
|
-
|
|
6906
|
-
.
|
|
6907
|
-
|
|
6908
|
-
};
|
|
6909
|
-
exports.getJobCreateScripts = getJobCreateScripts;
|
|
6910
|
-
const getJobCreateScriptsForJob = (context, jobName, job) => {
|
|
6911
|
-
const commonDeployArgs = (0, common_1.getCommonDeployArgs)(context);
|
|
6912
|
-
// due to some oversight from google, jobs create does not yet accept `--add-volume` 🤦
|
|
6913
|
-
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
6914
|
-
// we cannot upsert a job, so we have to create it and catch the error and then update
|
|
6915
|
-
const commandArray = Array.isArray(job.command)
|
|
6916
|
-
? job.command
|
|
6917
|
-
: job.command.split(" ");
|
|
6903
|
+
const getJobCreateScripts = (context) => getCloudRunJobsWithNames(context).map(({ job: { command, image, cpu, memory = "512Mi", timeout = "10m", parallelism = 1, volumes, }, jobName, }, jobIndex) => {
|
|
6904
|
+
const commandArray = Array.isArray(command)
|
|
6905
|
+
? command
|
|
6906
|
+
: command.split(" ");
|
|
6907
|
+
const { image: commonImage, project, region, ...deployArgs } = (0, common_1.getCommonDeployArgs)(context);
|
|
6918
6908
|
const commonDeployArgsString = (0, createArgsString_1.createArgsString)({
|
|
6919
|
-
command:
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
"task-timeout": job.timeout || "10m",
|
|
6929
|
-
parallelism: job.parallelism || 1,
|
|
6909
|
+
command: `"${commandArray.join(",")}"`,
|
|
6910
|
+
labels: `"${(0, common_1.makeLabelString)((0, getLabels_1.getLabels)(context))},cloud-run-job-name=$current_job_name"`,
|
|
6911
|
+
image: `"${image !== null && image !== void 0 ? image : commonImage}"`,
|
|
6912
|
+
project,
|
|
6913
|
+
region,
|
|
6914
|
+
cpu,
|
|
6915
|
+
memory,
|
|
6916
|
+
parallelism,
|
|
6917
|
+
"task-timeout": timeout,
|
|
6930
6918
|
"env-vars-file": constants_1.ENV_VARS_FILENAME,
|
|
6931
6919
|
"max-retries": 0,
|
|
6920
|
+
...deployArgs,
|
|
6932
6921
|
});
|
|
6933
|
-
|
|
6934
|
-
|
|
6922
|
+
// due to some oversight from google, jobs create does not yet accept `--add-volume` 🤦
|
|
6923
|
+
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
6924
|
+
// we cannot upsert a job, so we have to create it and catch the error and then update
|
|
6925
|
+
const hasVolumes = Object.keys(volumes || {}).length > 0;
|
|
6926
|
+
const needsBeta = hasVolumes ? "beta" : undefined;
|
|
6927
|
+
const volumeArgs = hasVolumes
|
|
6928
|
+
? (0, createArgsString_1.createArgsString)(...(0, volumes_1.createVolumeConfig)(volumes, "job"))
|
|
6929
|
+
: "";
|
|
6935
6930
|
return [
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
}
|
|
6931
|
+
jobIndex === 0
|
|
6932
|
+
? `exist_job_names="$(\n ${(0, common_1.gcloudRunCmd)()} jobs list --filter='metadata.name ~ ${context.env}.*${context.name}' --format='value(name)' --limit=999 --project='${project}' --region='${region}'\n)"`
|
|
6933
|
+
: null,
|
|
6934
|
+
`current_job_name="${jobName}"`,
|
|
6935
|
+
'if grep "$current_job_name" <<<"$exist_job_names" >/dev/null; then',
|
|
6936
|
+
` ${(0, common_1.gcloudRunCmd)(needsBeta)} jobs update "$current_job_name" ${commonDeployArgsString} ${volumeArgs}`,
|
|
6937
|
+
"else",
|
|
6938
|
+
` ${(0, common_1.gcloudRunCmd)()} jobs create "$current_job_name" ${commonDeployArgsString}`,
|
|
6939
|
+
"fi",
|
|
6940
|
+
]
|
|
6941
|
+
.filter(utils_1.notNil)
|
|
6942
|
+
.join("\n");
|
|
6943
|
+
});
|
|
6944
|
+
exports.getJobCreateScripts = getJobCreateScripts;
|
|
6940
6945
|
const getCreateScheduleScripts = (context) => {
|
|
6941
6946
|
const jobsWithSchedule = getCloudRunJobsWithSchedule(context);
|
|
6942
|
-
const
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6947
|
+
const { region: location, projectId: project } = (0, common_1.getCloudRunDeployConfig)(context);
|
|
6948
|
+
const uriBase = `https://${location}-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/${project}/jobs`;
|
|
6949
|
+
const gcloudArgs = {
|
|
6950
|
+
project,
|
|
6951
|
+
location,
|
|
6952
|
+
uri: `"$current_job_uri"`,
|
|
6953
|
+
"http-method": "POST",
|
|
6954
|
+
"oauth-service-account-email": `"$GCLOUD_PROJECT_NUMBER-compute@developer.gserviceaccount.com"`,
|
|
6955
|
+
};
|
|
6956
|
+
return jobsWithSchedule.map(({ job: { maxRetryAttempts, schedule }, jobName, schedulerName }, jobIndex) => {
|
|
6946
6957
|
const argsString = (0, createArgsString_1.createArgsString)({
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
"max-retry-attempts": (_a = job.maxRetryAttempts) !== null && _a !== void 0 ? _a : 0,
|
|
6951
|
-
uri: `"https://${deployConfig.region}-run.googleapis.com/apis/run.googleapis.com/v1/namespaces/${deployConfig.projectId}/jobs/${jobName}:run"`,
|
|
6952
|
-
"http-method": "POST",
|
|
6953
|
-
"oauth-service-account-email": "$GCLOUD_PROJECT_NUMBER-compute@developer.gserviceaccount.com",
|
|
6958
|
+
...gcloudArgs,
|
|
6959
|
+
schedule: `"${schedule}"`,
|
|
6960
|
+
"max-retry-attempts": maxRetryAttempts !== null && maxRetryAttempts !== void 0 ? maxRetryAttempts : 0,
|
|
6954
6961
|
});
|
|
6955
|
-
const commonArgs = `http ${schedulerName} ${argsString}`;
|
|
6956
6962
|
return [
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6963
|
+
jobIndex === 0
|
|
6964
|
+
? `exist_scheduler_names="$(\n ${(0, common_1.gcloudSchedulerCmd)()} jobs list --filter='httpTarget.uri ~ ${context.env}.*${context.name}' --format='value(name)' --limit=999 --location='${location}' --project='${project}'\n)"`
|
|
6965
|
+
: null,
|
|
6966
|
+
`current_job_uri="${uriBase}/${jobName}:run"`,
|
|
6967
|
+
`current_scheduler_name="${schedulerName}"`,
|
|
6968
|
+
`if grep "$current_scheduler_name" <<<"$exist_scheduler_names" >/dev/null; then`,
|
|
6969
|
+
` ${(0, common_1.gcloudSchedulerCmd)()} jobs update http "$current_scheduler_name" ${argsString}`,
|
|
6970
|
+
`else`,
|
|
6971
|
+
` ${(0, common_1.gcloudSchedulerCmd)()} jobs create http "$current_scheduler_name" ${argsString}`,
|
|
6972
|
+
`fi`,
|
|
6973
|
+
]
|
|
6974
|
+
.filter(utils_1.notNil)
|
|
6975
|
+
.join("\n");
|
|
6976
|
+
});
|
|
6964
6977
|
};
|
|
6965
6978
|
exports.getCreateScheduleScripts = getCreateScheduleScripts;
|
|
6966
6979
|
const getCloudRunJobsWithSchedule = (context) => {
|
|
6967
6980
|
const jobsWithNames = getCloudRunJobsWithNames(context);
|
|
6968
6981
|
return jobsWithNames
|
|
6969
6982
|
.filter((entry) => entry.job.when === "schedule")
|
|
6970
|
-
.map(({ job, jobName }) => ({
|
|
6983
|
+
.map(({ job, jobName, jobKey }) => ({
|
|
6971
6984
|
job,
|
|
6972
6985
|
jobName,
|
|
6986
|
+
jobKey,
|
|
6973
6987
|
schedulerName: jobName.concat("-scheduler"),
|
|
6974
6988
|
}));
|
|
6975
6989
|
};
|
|
@@ -6980,9 +6994,10 @@ const getCloudRunJobsWithNames = (context) => {
|
|
|
6980
6994
|
const jobsWithNames = Object.entries((_a = deployConfig.jobs) !== null && _a !== void 0 ? _a : {})
|
|
6981
6995
|
// filter out disabled jobs
|
|
6982
6996
|
.filter((entry) => Boolean(entry[1]))
|
|
6983
|
-
.map(([
|
|
6984
|
-
jobName: getFullJobName(
|
|
6997
|
+
.map(([jobKey, job]) => ({
|
|
6998
|
+
jobName: getFullJobName(jobKey),
|
|
6985
6999
|
job,
|
|
7000
|
+
jobKey,
|
|
6986
7001
|
}));
|
|
6987
7002
|
return jobsWithNames;
|
|
6988
7003
|
};
|
|
@@ -7583,13 +7598,14 @@ exports.getFullDbName = getFullDbName;
|
|
|
7583
7598
|
|
|
7584
7599
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7585
7600
|
exports.createCustomDeployJobs = void 0;
|
|
7601
|
+
const getAllCacheConfigsFromConfig_1 = __nccwpck_require__(30673);
|
|
7586
7602
|
const yarn_1 = __nccwpck_require__(45043);
|
|
7587
7603
|
const runner_1 = __nccwpck_require__(4058);
|
|
7588
7604
|
const base_1 = __nccwpck_require__(84052);
|
|
7589
7605
|
const sbom_1 = __nccwpck_require__(44986);
|
|
7590
7606
|
const types_1 = __nccwpck_require__(75781);
|
|
7591
7607
|
const createCustomDeployJobs = (context) => {
|
|
7592
|
-
var _a, _b, _c
|
|
7608
|
+
var _a, _b, _c;
|
|
7593
7609
|
const deployConfig = (_a = context.deploy) === null || _a === void 0 ? void 0 : _a.config;
|
|
7594
7610
|
if (!(0, types_1.isOfDeployType)(deployConfig, "custom")) {
|
|
7595
7611
|
// should not happen
|
|
@@ -7599,10 +7615,10 @@ const createCustomDeployJobs = (context) => {
|
|
|
7599
7615
|
const yarnInstall = (0, yarn_1.getYarnInstall)(context, {
|
|
7600
7616
|
noCustomPostInstall: true,
|
|
7601
7617
|
});
|
|
7602
|
-
|
|
7618
|
+
const result = (0, base_1.createDeployementJobs)(context, {
|
|
7603
7619
|
deploy: {
|
|
7604
7620
|
image: (_b = deployConfig.jobImage) !== null && _b !== void 0 ? _b : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
7605
|
-
cache: (
|
|
7621
|
+
cache: (0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context, deployConfig),
|
|
7606
7622
|
script: [
|
|
7607
7623
|
`cd ${context.build.dir}`,
|
|
7608
7624
|
...(deployConfig.requiresYarnInstall ? yarnInstall : []),
|
|
@@ -7613,7 +7629,7 @@ const createCustomDeployJobs = (context) => {
|
|
|
7613
7629
|
},
|
|
7614
7630
|
stop: deployConfig.stopScript
|
|
7615
7631
|
? {
|
|
7616
|
-
image: (
|
|
7632
|
+
image: (_c = deployConfig.jobImage) !== null && _c !== void 0 ? _c : (0, runner_1.getRunnerImage)("jobs-default"),
|
|
7617
7633
|
script: [
|
|
7618
7634
|
...deployConfig.stopScript,
|
|
7619
7635
|
...(0, sbom_1.getDependencyTrackDeleteScript)(context),
|
|
@@ -7622,6 +7638,7 @@ const createCustomDeployJobs = (context) => {
|
|
|
7622
7638
|
}
|
|
7623
7639
|
: undefined,
|
|
7624
7640
|
});
|
|
7641
|
+
return result;
|
|
7625
7642
|
};
|
|
7626
7643
|
exports.createCustomDeployJobs = createCustomDeployJobs;
|
|
7627
7644
|
//# sourceMappingURL=deployJob.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BuildContextStandalone, ComponentContext, WorkspaceContext } from "../..";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AppBuildJobDefinition } from "../../types/jobDefinition";
|
|
3
3
|
import type { CatladderJob } from "../../types/jobs";
|
|
4
|
-
export type AppBuildJobDefinition = JobDefintion;
|
|
5
4
|
export declare const createAppBuildJob: (context: ComponentContext<BuildContextStandalone> | WorkspaceContext, { script, variables, runnerVariables, cache, ...def }: AppBuildJobDefinition) => CatladderJob;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAppBuildJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createAppBuildJob.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAM/B,6BAAuC;AAGvC,uCAA0C;AAC1C,gFAA8E;AAC9E,4DAAyE;AACzE,uCAAiD;AACjD,2CAGqB;AACrB,qDAAkD;AAClD,+CAGuB;
|
|
1
|
+
{"version":3,"file":"createAppBuildJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createAppBuildJob.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAM/B,6BAAuC;AAGvC,uCAA0C;AAC1C,gFAA8E;AAC9E,4DAAyE;AACzE,uCAAiD;AACjD,2CAGqB;AACrB,qDAAkD;AAClD,+CAGuB;AAEhB,MAAM,iBAAiB,GAAG,CAC/B,OAAoE,EACpE,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,GAAG,EAAyB,EAC9D,EAAE;;IAChB,OAAO,IAAA,cAAK,EACV;QACE,IAAI,EAAE,8BAAkB;QACxB,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,IAAA,kBAAc,EAAC,cAAc,CAAC;QACrC,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAA,+CAA8B,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;QACzE,SAAS,EAAE;YACT,GAAG,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAC;YACpB,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAC9B,CAAC,CAAC;oBACE,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO;oBAC9B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;iBACjD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;QACD,eAAe,EAAE;YACf,GAAG,2CAA+B;YAClC,GAAG,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,CAAC;YAC1B,GAAG,CAAC,MAAA,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,mCAAI,EAAE,CAAC;SAChD;QAED,MAAM,EAAE;YACN,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBAC9B,CAAC,CAAC,IAAA,kDAAoC,EAAC,OAAO,CAAC;oBAC7C,CAAC,CAAC,IAAA,yBAAW,EAAC,OAAO,CAAC;oBACtB,CAAC,CAAC,EAAE;gBACN,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;oBAC5B,CAAC,CAAC,OAAO,CAAC,UAAU;yBACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,kDAAoC,EAAC,CAAC,CAAC,CAAC;yBACtD,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,CAAC,CAAC,CAAC;oBACnC,CAAC,CAAC,EAAE,CAAC;YACT,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAChE,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,EAAE,wEAAwE;YACvG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;YACzB,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC;SACvB;QACD,SAAS,EAAE,IAAA,gDAAuB,EAAC,OAAO,CAAC;KAC5C,EACD,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,iBAAiB,qBA8C5B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { BuildConfigStandalone, WorkspaceBuildConfig } from "..";
|
|
2
|
-
import type { Context } from "../../types";
|
|
3
|
-
|
|
4
|
-
export declare const createBuildJobDefinition: (context: Context, buildConfig: BuildConfigStandalone | WorkspaceBuildConfig, customize?: Pick<JobDefintion, "cache"> & {
|
|
2
|
+
import type { AppBuildJobDefinition, Context } from "../../types";
|
|
3
|
+
export declare const createBuildJobDefinition: (context: Context, buildConfig: BuildConfigStandalone | WorkspaceBuildConfig, customize?: Pick<AppBuildJobDefinition, "cache"> & {
|
|
5
4
|
prescript?: string[];
|
|
6
5
|
postscript?: string[];
|
|
7
|
-
}) =>
|
|
6
|
+
}) => AppBuildJobDefinition | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBuildJobDefinition.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createBuildJobDefinition.ts"],"names":[],"mappings":";;;AACA,yCAA8C;
|
|
1
|
+
{"version":3,"file":"createBuildJobDefinition.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/base/createBuildJobDefinition.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAE9C,uCAA0C;AAC1C,wFAAqF;AACrF,iDAAgE;AAEzD,MAAM,wBAAwB,GAAG,CACtC,OAAgB,EAChB,WAAyD,EACzD,YAGI,EAAE,EAC6B,EAAE;;IACrC,IAAI,WAAW,CAAC,YAAY,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAExD,MAAM,YAAY,GAAG,IAAA,uBAAc,EAAC,cAAc,CAAC,CAAC;IAEpD,OAAO;QACL,KAAK,EAAE,MAAA,WAAW,CAAC,QAAQ,mCAAI,YAAY;QAC3C,eAAe,EAAE,uCAA2B;QAC5C,KAAK,EAAE;YACL,GAAG,CAAC,MAAA,SAAS,CAAC,KAAK,mCAAI,EAAE,CAAC;YAC1B,GAAG,IAAA,2DAA4B,EAAC,OAAO,EAAE,WAAW,CAAC;SACtD;QACD,QAAQ,EACN,aAAa,IAAI,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QACpE,MAAM,EAAE;YACN,GAAG,CAAC,MAAA,SAAS,CAAC,SAAS,mCAAI,EAAE,CAAC;YAC9B,GAAG,IAAA,mBAAW,EAAC,WAAW,CAAC,YAAY,CAAC;YACxC,GAAG,CAAC,MAAA,SAAS,CAAC,UAAU,mCAAI,EAAE,CAAC;SAChC;QAED,OAAO,EAAE,WAAW,CAAC,OAAO;KAC7B,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,wBAAwB,4BA6BnC"}
|