@catladder/pipeline 1.100.0 → 1.100.2
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/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/pipeline/gitlab/createGitlabJobs.js +9 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +0 -32
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +0 -32
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +0 -32
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +0 -64
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +0 -64
- package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +0 -36
- package/examples/__snapshots__/custom-build-job.ts.snap +0 -28
- package/examples/__snapshots__/custom-deploy.ts.snap +0 -32
- package/examples/__snapshots__/custom-envs.ts.snap +0 -38
- package/examples/__snapshots__/custom-sbom-java.ts.snap +0 -28
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +0 -32
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +0 -32
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +0 -32
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +0 -64
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +0 -32
- package/examples/__snapshots__/rails-k8s-with-worker.ts.snap +0 -28
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +0 -56
- package/package.json +1 -1
- package/src/pipeline/gitlab/createGitlabJobs.ts +6 -2
|
@@ -22,7 +22,6 @@ exports[`matches snapshot 1`] = `
|
|
|
22
22
|
"policy": "pull-push",
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
|
-
"environment": undefined,
|
|
26
25
|
"interruptible": true,
|
|
27
26
|
"needs": [],
|
|
28
27
|
"retry": {
|
|
@@ -81,7 +80,6 @@ exports[`matches snapshot 1`] = `
|
|
|
81
80
|
"policy": "pull-push",
|
|
82
81
|
},
|
|
83
82
|
],
|
|
84
|
-
"environment": undefined,
|
|
85
83
|
"image": "path/to/docker/jobs-default:the-version",
|
|
86
84
|
"interruptible": true,
|
|
87
85
|
"needs": [],
|
|
@@ -173,8 +171,6 @@ exports[`matches snapshot 1`] = `
|
|
|
173
171
|
},
|
|
174
172
|
"api 🛡 audit": {
|
|
175
173
|
"allow_failure": true,
|
|
176
|
-
"cache": undefined,
|
|
177
|
-
"environment": undefined,
|
|
178
174
|
"interruptible": true,
|
|
179
175
|
"needs": [],
|
|
180
176
|
"retry": {
|
|
@@ -214,7 +210,6 @@ exports[`matches snapshot 1`] = `
|
|
|
214
210
|
"policy": "pull-push",
|
|
215
211
|
},
|
|
216
212
|
],
|
|
217
|
-
"environment": undefined,
|
|
218
213
|
"image": "path/to/docker/jobs-testing-chrome:the-version",
|
|
219
214
|
"interruptible": true,
|
|
220
215
|
"needs": [],
|
|
@@ -242,8 +237,6 @@ exports[`matches snapshot 1`] = `
|
|
|
242
237
|
},
|
|
243
238
|
"api 🧾 sbom upload | dev ": {
|
|
244
239
|
"allow_failure": true,
|
|
245
|
-
"cache": undefined,
|
|
246
|
-
"environment": undefined,
|
|
247
240
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
248
241
|
"interruptible": true,
|
|
249
242
|
"needs": [
|
|
@@ -269,8 +262,6 @@ exports[`matches snapshot 1`] = `
|
|
|
269
262
|
"__sbom.json",
|
|
270
263
|
],
|
|
271
264
|
},
|
|
272
|
-
"cache": undefined,
|
|
273
|
-
"environment": undefined,
|
|
274
265
|
"image": "aquasec/trivy:0.38.3",
|
|
275
266
|
"interruptible": true,
|
|
276
267
|
"needs": [
|
|
@@ -306,7 +297,6 @@ exports[`matches snapshot 1`] = `
|
|
|
306
297
|
"policy": "pull-push",
|
|
307
298
|
},
|
|
308
299
|
],
|
|
309
|
-
"environment": undefined,
|
|
310
300
|
"interruptible": true,
|
|
311
301
|
"needs": [],
|
|
312
302
|
"retry": {
|
|
@@ -365,7 +355,6 @@ exports[`matches snapshot 1`] = `
|
|
|
365
355
|
"policy": "pull-push",
|
|
366
356
|
},
|
|
367
357
|
],
|
|
368
|
-
"environment": undefined,
|
|
369
358
|
"image": "path/to/docker/jobs-default:the-version",
|
|
370
359
|
"interruptible": true,
|
|
371
360
|
"needs": [],
|
|
@@ -461,8 +450,6 @@ exports[`matches snapshot 1`] = `
|
|
|
461
450
|
},
|
|
462
451
|
"www 🛡 audit": {
|
|
463
452
|
"allow_failure": true,
|
|
464
|
-
"cache": undefined,
|
|
465
|
-
"environment": undefined,
|
|
466
453
|
"interruptible": true,
|
|
467
454
|
"needs": [],
|
|
468
455
|
"retry": {
|
|
@@ -502,7 +489,6 @@ exports[`matches snapshot 1`] = `
|
|
|
502
489
|
"policy": "pull-push",
|
|
503
490
|
},
|
|
504
491
|
],
|
|
505
|
-
"environment": undefined,
|
|
506
492
|
"image": "path/to/docker/jobs-testing-chrome:the-version",
|
|
507
493
|
"interruptible": true,
|
|
508
494
|
"needs": [],
|
|
@@ -530,8 +516,6 @@ exports[`matches snapshot 1`] = `
|
|
|
530
516
|
},
|
|
531
517
|
"www 🧾 sbom upload | dev ": {
|
|
532
518
|
"allow_failure": true,
|
|
533
|
-
"cache": undefined,
|
|
534
|
-
"environment": undefined,
|
|
535
519
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
536
520
|
"interruptible": true,
|
|
537
521
|
"needs": [
|
|
@@ -557,8 +541,6 @@ exports[`matches snapshot 1`] = `
|
|
|
557
541
|
"__sbom.json",
|
|
558
542
|
],
|
|
559
543
|
},
|
|
560
|
-
"cache": undefined,
|
|
561
|
-
"environment": undefined,
|
|
562
544
|
"image": "aquasec/trivy:0.38.3",
|
|
563
545
|
"interruptible": true,
|
|
564
546
|
"needs": [
|
|
@@ -666,7 +648,6 @@ exports[`matches snapshot 1`] = `
|
|
|
666
648
|
"policy": "pull-push",
|
|
667
649
|
},
|
|
668
650
|
],
|
|
669
|
-
"environment": undefined,
|
|
670
651
|
"interruptible": true,
|
|
671
652
|
"needs": [],
|
|
672
653
|
"retry": {
|
|
@@ -725,7 +706,6 @@ exports[`matches snapshot 1`] = `
|
|
|
725
706
|
"policy": "pull-push",
|
|
726
707
|
},
|
|
727
708
|
],
|
|
728
|
-
"environment": undefined,
|
|
729
709
|
"image": "path/to/docker/jobs-default:the-version",
|
|
730
710
|
"interruptible": true,
|
|
731
711
|
"needs": [],
|
|
@@ -817,8 +797,6 @@ exports[`matches snapshot 1`] = `
|
|
|
817
797
|
},
|
|
818
798
|
"api 🛡 audit": {
|
|
819
799
|
"allow_failure": true,
|
|
820
|
-
"cache": undefined,
|
|
821
|
-
"environment": undefined,
|
|
822
800
|
"interruptible": true,
|
|
823
801
|
"needs": [],
|
|
824
802
|
"retry": {
|
|
@@ -858,7 +836,6 @@ exports[`matches snapshot 1`] = `
|
|
|
858
836
|
"policy": "pull-push",
|
|
859
837
|
},
|
|
860
838
|
],
|
|
861
|
-
"environment": undefined,
|
|
862
839
|
"image": "path/to/docker/jobs-testing-chrome:the-version",
|
|
863
840
|
"interruptible": true,
|
|
864
841
|
"needs": [],
|
|
@@ -886,8 +863,6 @@ exports[`matches snapshot 1`] = `
|
|
|
886
863
|
},
|
|
887
864
|
"api 🧾 sbom upload | review ": {
|
|
888
865
|
"allow_failure": true,
|
|
889
|
-
"cache": undefined,
|
|
890
|
-
"environment": undefined,
|
|
891
866
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
892
867
|
"interruptible": true,
|
|
893
868
|
"needs": [
|
|
@@ -913,8 +888,6 @@ exports[`matches snapshot 1`] = `
|
|
|
913
888
|
"__sbom.json",
|
|
914
889
|
],
|
|
915
890
|
},
|
|
916
|
-
"cache": undefined,
|
|
917
|
-
"environment": undefined,
|
|
918
891
|
"image": "aquasec/trivy:0.38.3",
|
|
919
892
|
"interruptible": true,
|
|
920
893
|
"needs": [
|
|
@@ -950,7 +923,6 @@ exports[`matches snapshot 1`] = `
|
|
|
950
923
|
"policy": "pull-push",
|
|
951
924
|
},
|
|
952
925
|
],
|
|
953
|
-
"environment": undefined,
|
|
954
926
|
"interruptible": true,
|
|
955
927
|
"needs": [],
|
|
956
928
|
"retry": {
|
|
@@ -1009,7 +981,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1009
981
|
"policy": "pull-push",
|
|
1010
982
|
},
|
|
1011
983
|
],
|
|
1012
|
-
"environment": undefined,
|
|
1013
984
|
"image": "path/to/docker/jobs-default:the-version",
|
|
1014
985
|
"interruptible": true,
|
|
1015
986
|
"needs": [],
|
|
@@ -1105,8 +1076,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1105
1076
|
},
|
|
1106
1077
|
"www 🛡 audit": {
|
|
1107
1078
|
"allow_failure": true,
|
|
1108
|
-
"cache": undefined,
|
|
1109
|
-
"environment": undefined,
|
|
1110
1079
|
"interruptible": true,
|
|
1111
1080
|
"needs": [],
|
|
1112
1081
|
"retry": {
|
|
@@ -1146,7 +1115,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1146
1115
|
"policy": "pull-push",
|
|
1147
1116
|
},
|
|
1148
1117
|
],
|
|
1149
|
-
"environment": undefined,
|
|
1150
1118
|
"image": "path/to/docker/jobs-testing-chrome:the-version",
|
|
1151
1119
|
"interruptible": true,
|
|
1152
1120
|
"needs": [],
|
|
@@ -1174,8 +1142,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1174
1142
|
},
|
|
1175
1143
|
"www 🧾 sbom upload | review ": {
|
|
1176
1144
|
"allow_failure": true,
|
|
1177
|
-
"cache": undefined,
|
|
1178
|
-
"environment": undefined,
|
|
1179
1145
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
1180
1146
|
"interruptible": true,
|
|
1181
1147
|
"needs": [
|
|
@@ -1201,8 +1167,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1201
1167
|
"__sbom.json",
|
|
1202
1168
|
],
|
|
1203
1169
|
},
|
|
1204
|
-
"cache": undefined,
|
|
1205
|
-
"environment": undefined,
|
|
1206
1170
|
"image": "aquasec/trivy:0.38.3",
|
|
1207
1171
|
"interruptible": true,
|
|
1208
1172
|
"needs": [
|
|
@@ -1327,7 +1291,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1327
1291
|
"policy": "pull-push",
|
|
1328
1292
|
},
|
|
1329
1293
|
],
|
|
1330
|
-
"environment": undefined,
|
|
1331
1294
|
"image": "path/to/docker/jobs-default:the-version",
|
|
1332
1295
|
"interruptible": true,
|
|
1333
1296
|
"needs": [],
|
|
@@ -1394,7 +1357,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1394
1357
|
"policy": "pull-push",
|
|
1395
1358
|
},
|
|
1396
1359
|
],
|
|
1397
|
-
"environment": undefined,
|
|
1398
1360
|
"image": "path/to/docker/jobs-default:the-version",
|
|
1399
1361
|
"interruptible": true,
|
|
1400
1362
|
"needs": [],
|
|
@@ -1519,8 +1481,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1519
1481
|
},
|
|
1520
1482
|
"api 🧾 sbom upload | prod ": {
|
|
1521
1483
|
"allow_failure": true,
|
|
1522
|
-
"cache": undefined,
|
|
1523
|
-
"environment": undefined,
|
|
1524
1484
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
1525
1485
|
"interruptible": true,
|
|
1526
1486
|
"needs": [
|
|
@@ -1541,8 +1501,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1541
1501
|
},
|
|
1542
1502
|
"api 🧾 sbom upload | stage ": {
|
|
1543
1503
|
"allow_failure": true,
|
|
1544
|
-
"cache": undefined,
|
|
1545
|
-
"environment": undefined,
|
|
1546
1504
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
1547
1505
|
"interruptible": true,
|
|
1548
1506
|
"needs": [
|
|
@@ -1568,8 +1526,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1568
1526
|
"__sbom.json",
|
|
1569
1527
|
],
|
|
1570
1528
|
},
|
|
1571
|
-
"cache": undefined,
|
|
1572
|
-
"environment": undefined,
|
|
1573
1529
|
"image": "aquasec/trivy:0.38.3",
|
|
1574
1530
|
"interruptible": true,
|
|
1575
1531
|
"needs": [
|
|
@@ -1595,8 +1551,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1595
1551
|
"__sbom.json",
|
|
1596
1552
|
],
|
|
1597
1553
|
},
|
|
1598
|
-
"cache": undefined,
|
|
1599
|
-
"environment": undefined,
|
|
1600
1554
|
"image": "aquasec/trivy:0.38.3",
|
|
1601
1555
|
"interruptible": true,
|
|
1602
1556
|
"needs": [
|
|
@@ -1649,7 +1603,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1649
1603
|
"policy": "pull-push",
|
|
1650
1604
|
},
|
|
1651
1605
|
],
|
|
1652
|
-
"environment": undefined,
|
|
1653
1606
|
"image": "path/to/docker/jobs-default:the-version",
|
|
1654
1607
|
"interruptible": true,
|
|
1655
1608
|
"needs": [],
|
|
@@ -1716,7 +1669,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1716
1669
|
"policy": "pull-push",
|
|
1717
1670
|
},
|
|
1718
1671
|
],
|
|
1719
|
-
"environment": undefined,
|
|
1720
1672
|
"image": "path/to/docker/jobs-default:the-version",
|
|
1721
1673
|
"interruptible": true,
|
|
1722
1674
|
"needs": [],
|
|
@@ -1849,8 +1801,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1849
1801
|
},
|
|
1850
1802
|
"www 🧾 sbom upload | prod ": {
|
|
1851
1803
|
"allow_failure": true,
|
|
1852
|
-
"cache": undefined,
|
|
1853
|
-
"environment": undefined,
|
|
1854
1804
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
1855
1805
|
"interruptible": true,
|
|
1856
1806
|
"needs": [
|
|
@@ -1871,8 +1821,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1871
1821
|
},
|
|
1872
1822
|
"www 🧾 sbom upload | stage ": {
|
|
1873
1823
|
"allow_failure": true,
|
|
1874
|
-
"cache": undefined,
|
|
1875
|
-
"environment": undefined,
|
|
1876
1824
|
"image": "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
|
|
1877
1825
|
"interruptible": true,
|
|
1878
1826
|
"needs": [
|
|
@@ -1898,8 +1846,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1898
1846
|
"__sbom.json",
|
|
1899
1847
|
],
|
|
1900
1848
|
},
|
|
1901
|
-
"cache": undefined,
|
|
1902
|
-
"environment": undefined,
|
|
1903
1849
|
"image": "aquasec/trivy:0.38.3",
|
|
1904
1850
|
"interruptible": true,
|
|
1905
1851
|
"needs": [
|
|
@@ -1925,8 +1871,6 @@ exports[`matches snapshot 1`] = `
|
|
|
1925
1871
|
"__sbom.json",
|
|
1926
1872
|
],
|
|
1927
1873
|
},
|
|
1928
|
-
"cache": undefined,
|
|
1929
|
-
"environment": undefined,
|
|
1930
1874
|
"image": "aquasec/trivy:0.38.3",
|
|
1931
1875
|
"interruptible": true,
|
|
1932
1876
|
"needs": [
|
package/package.json
CHANGED
|
@@ -6,6 +6,10 @@ import type { AllCatladderJobs } from "../createAllJobs";
|
|
|
6
6
|
|
|
7
7
|
type AllGitlabJobs = Record<string, GitlabJobDef>;
|
|
8
8
|
|
|
9
|
+
const removeUndefined = <T extends Record<string, unknown>>(obj: T): T =>
|
|
10
|
+
Object.fromEntries(
|
|
11
|
+
Object.entries(obj).filter(([, value]) => value !== undefined)
|
|
12
|
+
) as T;
|
|
9
13
|
const getFullJobName = (
|
|
10
14
|
name: string,
|
|
11
15
|
componentName: string,
|
|
@@ -95,7 +99,7 @@ export const makeGitlabJob = (
|
|
|
95
99
|
envMode !== "none" ? env : undefined
|
|
96
100
|
);
|
|
97
101
|
|
|
98
|
-
const gitlabJob = {
|
|
102
|
+
const gitlabJob: GitlabJobDef = removeUndefined({
|
|
99
103
|
...job,
|
|
100
104
|
stage,
|
|
101
105
|
environment: job.environment?.on_stop
|
|
@@ -113,7 +117,7 @@ export const makeGitlabJob = (
|
|
|
113
117
|
needs: gitlabNeeds,
|
|
114
118
|
retry: BASE_RETRY,
|
|
115
119
|
interruptible: true,
|
|
116
|
-
};
|
|
120
|
+
});
|
|
117
121
|
|
|
118
122
|
return [fullJobName, gitlabJob];
|
|
119
123
|
};
|