projen-pipelines 0.0.69 → 0.0.70

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/.jsii CHANGED
@@ -159,7 +159,7 @@
159
159
  },
160
160
  "locationInModule": {
161
161
  "filename": "src/awscdk/bash.ts",
162
- "line": 78
162
+ "line": 79
163
163
  },
164
164
  "name": "engineType",
165
165
  "overrides": "projen-pipelines.CDKPipeline",
@@ -276,7 +276,7 @@
276
276
  },
277
277
  "locationInModule": {
278
278
  "filename": "src/awscdk/base.ts",
279
- "line": 273
279
+ "line": 276
280
280
  },
281
281
  "name": "createApplicationEntrypoint",
282
282
  "protected": true
@@ -288,7 +288,7 @@
288
288
  },
289
289
  "locationInModule": {
290
290
  "filename": "src/awscdk/base.ts",
291
- "line": 439
291
+ "line": 442
292
292
  },
293
293
  "name": "createFeatureStage",
294
294
  "protected": true
@@ -300,7 +300,7 @@
300
300
  },
301
301
  "locationInModule": {
302
302
  "filename": "src/awscdk/base.ts",
303
- "line": 478
303
+ "line": 481
304
304
  },
305
305
  "name": "createIndependentStage",
306
306
  "parameters": [
@@ -323,7 +323,7 @@
323
323
  },
324
324
  "locationInModule": {
325
325
  "filename": "src/awscdk/base.ts",
326
- "line": 419
326
+ "line": 422
327
327
  },
328
328
  "name": "createPersonalStage",
329
329
  "protected": true
@@ -335,7 +335,7 @@
335
335
  },
336
336
  "locationInModule": {
337
337
  "filename": "src/awscdk/base.ts",
338
- "line": 459
338
+ "line": 462
339
339
  },
340
340
  "name": "createPipelineStage",
341
341
  "parameters": [
@@ -358,7 +358,7 @@
358
358
  },
359
359
  "locationInModule": {
360
360
  "filename": "src/awscdk/base.ts",
361
- "line": 371
361
+ "line": 374
362
362
  },
363
363
  "name": "createReleaseTasks",
364
364
  "protected": true
@@ -369,7 +369,7 @@
369
369
  },
370
370
  "locationInModule": {
371
371
  "filename": "src/awscdk/base.ts",
372
- "line": 259
372
+ "line": 262
373
373
  },
374
374
  "name": "createSafeStageName",
375
375
  "parameters": [
@@ -409,18 +409,34 @@
409
409
  },
410
410
  "locationInModule": {
411
411
  "filename": "src/awscdk/base.ts",
412
- "line": 237
412
+ "line": 496
413
413
  },
414
- "name": "getAssetUploadCommands",
414
+ "name": "getCliStackPattern",
415
415
  "parameters": [
416
416
  {
417
- "name": "needsVersionedArtifacts",
417
+ "name": "stage",
418
418
  "type": {
419
- "primitive": "boolean"
419
+ "primitive": "string"
420
420
  }
421
421
  }
422
422
  ],
423
423
  "protected": true,
424
+ "returns": {
425
+ "type": {
426
+ "primitive": "string"
427
+ }
428
+ }
429
+ },
430
+ {
431
+ "docs": {
432
+ "stability": "stable"
433
+ },
434
+ "locationInModule": {
435
+ "filename": "src/awscdk/base.ts",
436
+ "line": 243
437
+ },
438
+ "name": "renderAssemblyUploadCommands",
439
+ "protected": true,
424
440
  "returns": {
425
441
  "type": {
426
442
  "collection": {
@@ -438,12 +454,13 @@
438
454
  },
439
455
  "locationInModule": {
440
456
  "filename": "src/awscdk/base.ts",
441
- "line": 493
457
+ "line": 237
442
458
  },
443
- "name": "getCliStackPattern",
459
+ "name": "renderAssetUploadCommands",
444
460
  "parameters": [
445
461
  {
446
- "name": "stage",
462
+ "name": "stageName",
463
+ "optional": true,
447
464
  "type": {
448
465
  "primitive": "string"
449
466
  }
@@ -452,7 +469,12 @@
452
469
  "protected": true,
453
470
  "returns": {
454
471
  "type": {
455
- "primitive": "string"
472
+ "collection": {
473
+ "elementtype": {
474
+ "primitive": "string"
475
+ },
476
+ "kind": "array"
477
+ }
456
478
  }
457
479
  }
458
480
  },
@@ -462,7 +484,7 @@
462
484
  },
463
485
  "locationInModule": {
464
486
  "filename": "src/awscdk/base.ts",
465
- "line": 247
487
+ "line": 250
466
488
  },
467
489
  "name": "renderDeployCommands",
468
490
  "parameters": [
@@ -491,7 +513,7 @@
491
513
  },
492
514
  "locationInModule": {
493
515
  "filename": "src/awscdk/base.ts",
494
- "line": 253
516
+ "line": 256
495
517
  },
496
518
  "name": "renderDiffCommands",
497
519
  "parameters": [
@@ -1039,7 +1061,7 @@
1039
1061
  },
1040
1062
  "locationInModule": {
1041
1063
  "filename": "src/awscdk/github.ts",
1042
- "line": 67
1064
+ "line": 69
1043
1065
  },
1044
1066
  "parameters": [
1045
1067
  {
@@ -1065,7 +1087,7 @@
1065
1087
  "kind": "class",
1066
1088
  "locationInModule": {
1067
1089
  "filename": "src/awscdk/github.ts",
1068
- "line": 50
1090
+ "line": 52
1069
1091
  },
1070
1092
  "methods": [
1071
1093
  {
@@ -1075,7 +1097,7 @@
1075
1097
  },
1076
1098
  "locationInModule": {
1077
1099
  "filename": "src/awscdk/github.ts",
1078
- "line": 169
1100
+ "line": 171
1079
1101
  },
1080
1102
  "name": "createAssetUpload"
1081
1103
  },
@@ -1086,7 +1108,7 @@
1086
1108
  },
1087
1109
  "locationInModule": {
1088
1110
  "filename": "src/awscdk/github.ts",
1089
- "line": 217
1111
+ "line": 238
1090
1112
  },
1091
1113
  "name": "createDeployment",
1092
1114
  "parameters": [
@@ -1108,7 +1130,7 @@
1108
1130
  },
1109
1131
  "locationInModule": {
1110
1132
  "filename": "src/awscdk/github.ts",
1111
- "line": 324
1133
+ "line": 345
1112
1134
  },
1113
1135
  "name": "createIndependentDeployment",
1114
1136
  "parameters": [
@@ -1130,7 +1152,7 @@
1130
1152
  },
1131
1153
  "locationInModule": {
1132
1154
  "filename": "src/awscdk/github.ts",
1133
- "line": 111
1155
+ "line": 113
1134
1156
  },
1135
1157
  "name": "engineType",
1136
1158
  "overrides": "projen-pipelines.CDKPipeline",
@@ -1151,7 +1173,7 @@
1151
1173
  "immutable": true,
1152
1174
  "locationInModule": {
1153
1175
  "filename": "src/awscdk/github.ts",
1154
- "line": 53
1176
+ "line": 55
1155
1177
  },
1156
1178
  "name": "needsVersionedArtifacts",
1157
1179
  "type": {
@@ -1164,7 +1186,7 @@
1164
1186
  },
1165
1187
  "locationInModule": {
1166
1188
  "filename": "src/awscdk/github.ts",
1167
- "line": 60
1189
+ "line": 62
1168
1190
  },
1169
1191
  "name": "useGithubPackages",
1170
1192
  "protected": true,
@@ -1189,7 +1211,7 @@
1189
1211
  "kind": "interface",
1190
1212
  "locationInModule": {
1191
1213
  "filename": "src/awscdk/github.ts",
1192
- "line": 30
1214
+ "line": 32
1193
1215
  },
1194
1216
  "name": "GithubCDKPipelineOptions",
1195
1217
  "properties": [
@@ -1202,7 +1224,7 @@
1202
1224
  "immutable": true,
1203
1225
  "locationInModule": {
1204
1226
  "filename": "src/awscdk/github.ts",
1205
- "line": 33
1227
+ "line": 35
1206
1228
  },
1207
1229
  "name": "iamRoleArns",
1208
1230
  "type": {
@@ -1219,7 +1241,7 @@
1219
1241
  "immutable": true,
1220
1242
  "locationInModule": {
1221
1243
  "filename": "src/awscdk/github.ts",
1222
- "line": 40
1244
+ "line": 42
1223
1245
  },
1224
1246
  "name": "runnerTags",
1225
1247
  "optional": true,
@@ -1242,7 +1264,7 @@
1242
1264
  "immutable": true,
1243
1265
  "locationInModule": {
1244
1266
  "filename": "src/awscdk/github.ts",
1245
- "line": 43
1267
+ "line": 45
1246
1268
  },
1247
1269
  "name": "useGithubPackagesForAssembly",
1248
1270
  "optional": true,
@@ -1285,6 +1307,28 @@
1285
1307
  "primitive": "string"
1286
1308
  }
1287
1309
  },
1310
+ {
1311
+ "abstract": true,
1312
+ "docs": {
1313
+ "stability": "stable",
1314
+ "summary": "IAM role ARN for the asset publishing step for a specific stage."
1315
+ },
1316
+ "immutable": true,
1317
+ "locationInModule": {
1318
+ "filename": "src/awscdk/github.ts",
1319
+ "line": 24
1320
+ },
1321
+ "name": "assetPublishingPerStage",
1322
+ "optional": true,
1323
+ "type": {
1324
+ "collection": {
1325
+ "elementtype": {
1326
+ "primitive": "string"
1327
+ },
1328
+ "kind": "map"
1329
+ }
1330
+ }
1331
+ },
1288
1332
  {
1289
1333
  "abstract": true,
1290
1334
  "docs": {
@@ -1311,7 +1355,7 @@
1311
1355
  "immutable": true,
1312
1356
  "locationInModule": {
1313
1357
  "filename": "src/awscdk/github.ts",
1314
- "line": 24
1358
+ "line": 26
1315
1359
  },
1316
1360
  "name": "deployment",
1317
1361
  "optional": true,
@@ -1441,7 +1485,7 @@
1441
1485
  },
1442
1486
  "locationInModule": {
1443
1487
  "filename": "src/awscdk/gitlab.ts",
1444
- "line": 82
1488
+ "line": 84
1445
1489
  },
1446
1490
  "parameters": [
1447
1491
  {
@@ -1467,7 +1511,7 @@
1467
1511
  "kind": "class",
1468
1512
  "locationInModule": {
1469
1513
  "filename": "src/awscdk/gitlab.ts",
1470
- "line": 61
1514
+ "line": 63
1471
1515
  },
1472
1516
  "methods": [
1473
1517
  {
@@ -1478,7 +1522,7 @@
1478
1522
  },
1479
1523
  "locationInModule": {
1480
1524
  "filename": "src/awscdk/gitlab.ts",
1481
- "line": 209
1525
+ "line": 211
1482
1526
  },
1483
1527
  "name": "createAssetUpload",
1484
1528
  "protected": true
@@ -1491,7 +1535,7 @@
1491
1535
  },
1492
1536
  "locationInModule": {
1493
1537
  "filename": "src/awscdk/gitlab.ts",
1494
- "line": 244
1538
+ "line": 262
1495
1539
  },
1496
1540
  "name": "createDeployment",
1497
1541
  "parameters": [
@@ -1514,7 +1558,7 @@
1514
1558
  },
1515
1559
  "locationInModule": {
1516
1560
  "filename": "src/awscdk/gitlab.ts",
1517
- "line": 311
1561
+ "line": 329
1518
1562
  },
1519
1563
  "name": "createIndependentDeployment",
1520
1564
  "parameters": [
@@ -1537,7 +1581,7 @@
1537
1581
  },
1538
1582
  "locationInModule": {
1539
1583
  "filename": "src/awscdk/gitlab.ts",
1540
- "line": 173
1584
+ "line": 175
1541
1585
  },
1542
1586
  "name": "createSynth",
1543
1587
  "protected": true
@@ -1548,7 +1592,7 @@
1548
1592
  },
1549
1593
  "locationInModule": {
1550
1594
  "filename": "src/awscdk/gitlab.ts",
1551
- "line": 353
1595
+ "line": 371
1552
1596
  },
1553
1597
  "name": "engineType",
1554
1598
  "overrides": "projen-pipelines.CDKPipeline",
@@ -1566,7 +1610,7 @@
1566
1610
  },
1567
1611
  "locationInModule": {
1568
1612
  "filename": "src/awscdk/gitlab.ts",
1569
- "line": 114
1613
+ "line": 116
1570
1614
  },
1571
1615
  "name": "setupSnippets",
1572
1616
  "protected": true
@@ -1582,7 +1626,7 @@
1582
1626
  "immutable": true,
1583
1627
  "locationInModule": {
1584
1628
  "filename": "src/awscdk/gitlab.ts",
1585
- "line": 70
1629
+ "line": 72
1586
1630
  },
1587
1631
  "name": "config",
1588
1632
  "type": {
@@ -1598,7 +1642,7 @@
1598
1642
  "immutable": true,
1599
1643
  "locationInModule": {
1600
1644
  "filename": "src/awscdk/gitlab.ts",
1601
- "line": 67
1645
+ "line": 69
1602
1646
  },
1603
1647
  "name": "jobImage",
1604
1648
  "type": {
@@ -1614,7 +1658,7 @@
1614
1658
  "immutable": true,
1615
1659
  "locationInModule": {
1616
1660
  "filename": "src/awscdk/gitlab.ts",
1617
- "line": 64
1661
+ "line": 66
1618
1662
  },
1619
1663
  "name": "needsVersionedArtifacts",
1620
1664
  "type": {
@@ -1638,7 +1682,7 @@
1638
1682
  "kind": "interface",
1639
1683
  "locationInModule": {
1640
1684
  "filename": "src/awscdk/gitlab.ts",
1641
- "line": 45
1685
+ "line": 47
1642
1686
  },
1643
1687
  "name": "GitlabCDKPipelineOptions",
1644
1688
  "properties": [
@@ -1651,7 +1695,7 @@
1651
1695
  "immutable": true,
1652
1696
  "locationInModule": {
1653
1697
  "filename": "src/awscdk/gitlab.ts",
1654
- "line": 47
1698
+ "line": 49
1655
1699
  },
1656
1700
  "name": "iamRoleArns",
1657
1701
  "type": {
@@ -1667,7 +1711,7 @@
1667
1711
  "immutable": true,
1668
1712
  "locationInModule": {
1669
1713
  "filename": "src/awscdk/gitlab.ts",
1670
- "line": 51
1714
+ "line": 53
1671
1715
  },
1672
1716
  "name": "image",
1673
1717
  "optional": true,
@@ -1684,7 +1728,7 @@
1684
1728
  "immutable": true,
1685
1729
  "locationInModule": {
1686
1730
  "filename": "src/awscdk/gitlab.ts",
1687
- "line": 49
1731
+ "line": 51
1688
1732
  },
1689
1733
  "name": "runnerTags",
1690
1734
  "optional": true,
@@ -1715,7 +1759,7 @@
1715
1759
  "abstract": true,
1716
1760
  "docs": {
1717
1761
  "stability": "stable",
1718
- "summary": "IAM role ARN for the asset publishing stage."
1762
+ "summary": "IAM role ARN for the asset publishing step."
1719
1763
  },
1720
1764
  "immutable": true,
1721
1765
  "locationInModule": {
@@ -1728,6 +1772,28 @@
1728
1772
  "primitive": "string"
1729
1773
  }
1730
1774
  },
1775
+ {
1776
+ "abstract": true,
1777
+ "docs": {
1778
+ "stability": "stable",
1779
+ "summary": "IAM role ARN for the asset publishing step for a specific stage."
1780
+ },
1781
+ "immutable": true,
1782
+ "locationInModule": {
1783
+ "filename": "src/awscdk/gitlab.ts",
1784
+ "line": 20
1785
+ },
1786
+ "name": "assetPublishingPerStage",
1787
+ "optional": true,
1788
+ "type": {
1789
+ "collection": {
1790
+ "elementtype": {
1791
+ "primitive": "string"
1792
+ },
1793
+ "kind": "map"
1794
+ }
1795
+ }
1796
+ },
1731
1797
  {
1732
1798
  "abstract": true,
1733
1799
  "docs": {
@@ -1754,7 +1820,7 @@
1754
1820
  "immutable": true,
1755
1821
  "locationInModule": {
1756
1822
  "filename": "src/awscdk/gitlab.ts",
1757
- "line": 22
1823
+ "line": 24
1758
1824
  },
1759
1825
  "name": "deployment",
1760
1826
  "optional": true,
@@ -1776,7 +1842,7 @@
1776
1842
  "immutable": true,
1777
1843
  "locationInModule": {
1778
1844
  "filename": "src/awscdk/gitlab.ts",
1779
- "line": 20
1845
+ "line": 22
1780
1846
  },
1781
1847
  "name": "diff",
1782
1848
  "optional": true,
@@ -1821,7 +1887,7 @@
1821
1887
  "kind": "interface",
1822
1888
  "locationInModule": {
1823
1889
  "filename": "src/awscdk/gitlab.ts",
1824
- "line": 29
1890
+ "line": 31
1825
1891
  },
1826
1892
  "name": "GitlabRunnerTags",
1827
1893
  "properties": [
@@ -1834,7 +1900,7 @@
1834
1900
  "immutable": true,
1835
1901
  "locationInModule": {
1836
1902
  "filename": "src/awscdk/gitlab.ts",
1837
- "line": 35
1903
+ "line": 37
1838
1904
  },
1839
1905
  "name": "assetPublishing",
1840
1906
  "optional": true,
@@ -1856,7 +1922,7 @@
1856
1922
  "immutable": true,
1857
1923
  "locationInModule": {
1858
1924
  "filename": "src/awscdk/gitlab.ts",
1859
- "line": 31
1925
+ "line": 33
1860
1926
  },
1861
1927
  "name": "default",
1862
1928
  "optional": true,
@@ -1878,7 +1944,7 @@
1878
1944
  "immutable": true,
1879
1945
  "locationInModule": {
1880
1946
  "filename": "src/awscdk/gitlab.ts",
1881
- "line": 39
1947
+ "line": 41
1882
1948
  },
1883
1949
  "name": "deployment",
1884
1950
  "optional": true,
@@ -1905,7 +1971,7 @@
1905
1971
  "immutable": true,
1906
1972
  "locationInModule": {
1907
1973
  "filename": "src/awscdk/gitlab.ts",
1908
- "line": 37
1974
+ "line": 39
1909
1975
  },
1910
1976
  "name": "diff",
1911
1977
  "optional": true,
@@ -1932,7 +1998,7 @@
1932
1998
  "immutable": true,
1933
1999
  "locationInModule": {
1934
2000
  "filename": "src/awscdk/gitlab.ts",
1935
- "line": 33
2001
+ "line": 35
1936
2002
  },
1937
2003
  "name": "synth",
1938
2004
  "optional": true,
@@ -2489,6 +2555,6 @@
2489
2555
  "symbolId": "src/awscdk/base:StageOptions"
2490
2556
  }
2491
2557
  },
2492
- "version": "0.0.69",
2493
- "fingerprint": "j87MTDjnj7tFpmFcFuJ2jrfecEhO7TlxLQLI0kPer7o="
2558
+ "version": "0.0.70",
2559
+ "fingerprint": "kIe18gP6GcM80tvGPEP0SjQ7ZM4dYxFhcoHlQWvR1fs="
2494
2560
  }
package/API.md CHANGED
@@ -1711,6 +1711,7 @@ const githubIamRoleConfig: GithubIamRoleConfig = { ... }
1711
1711
  | **Name** | **Type** | **Description** |
1712
1712
  | --- | --- | --- |
1713
1713
  | <code><a href="#projen-pipelines.GithubIamRoleConfig.property.assetPublishing">assetPublishing</a></code> | <code>string</code> | IAM role ARN for the asset publishing step. |
1714
+ | <code><a href="#projen-pipelines.GithubIamRoleConfig.property.assetPublishingPerStage">assetPublishingPerStage</a></code> | <code>{[ key: string ]: string}</code> | IAM role ARN for the asset publishing step for a specific stage. |
1714
1715
  | <code><a href="#projen-pipelines.GithubIamRoleConfig.property.default">default</a></code> | <code>string</code> | Default IAM role ARN used if no specific role is provided. |
1715
1716
  | <code><a href="#projen-pipelines.GithubIamRoleConfig.property.deployment">deployment</a></code> | <code>{[ key: string ]: string}</code> | IAM role ARNs for different deployment stages. |
1716
1717
  | <code><a href="#projen-pipelines.GithubIamRoleConfig.property.synth">synth</a></code> | <code>string</code> | IAM role ARN for the synthesis step. |
@@ -1729,6 +1730,18 @@ IAM role ARN for the asset publishing step.
1729
1730
 
1730
1731
  ---
1731
1732
 
1733
+ ##### `assetPublishingPerStage`<sup>Optional</sup> <a name="assetPublishingPerStage" id="projen-pipelines.GithubIamRoleConfig.property.assetPublishingPerStage"></a>
1734
+
1735
+ ```typescript
1736
+ public readonly assetPublishingPerStage: {[ key: string ]: string};
1737
+ ```
1738
+
1739
+ - *Type:* {[ key: string ]: string}
1740
+
1741
+ IAM role ARN for the asset publishing step for a specific stage.
1742
+
1743
+ ---
1744
+
1732
1745
  ##### `default`<sup>Optional</sup> <a name="default" id="projen-pipelines.GithubIamRoleConfig.property.default"></a>
1733
1746
 
1734
1747
  ```typescript
@@ -2078,7 +2091,8 @@ const gitlabIamRoleConfig: GitlabIamRoleConfig = { ... }
2078
2091
 
2079
2092
  | **Name** | **Type** | **Description** |
2080
2093
  | --- | --- | --- |
2081
- | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.assetPublishing">assetPublishing</a></code> | <code>string</code> | IAM role ARN for the asset publishing stage. |
2094
+ | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.assetPublishing">assetPublishing</a></code> | <code>string</code> | IAM role ARN for the asset publishing step. |
2095
+ | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.assetPublishingPerStage">assetPublishingPerStage</a></code> | <code>{[ key: string ]: string}</code> | IAM role ARN for the asset publishing step for a specific stage. |
2082
2096
  | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.default">default</a></code> | <code>string</code> | Default IAM role ARN used if specific stage role is not provided. |
2083
2097
  | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.deployment">deployment</a></code> | <code>{[ key: string ]: string}</code> | A map of stage names to IAM role ARNs for the deployment operation. |
2084
2098
  | <code><a href="#projen-pipelines.GitlabIamRoleConfig.property.diff">diff</a></code> | <code>{[ key: string ]: string}</code> | A map of stage names to IAM role ARNs for the diff operation. |
@@ -2094,7 +2108,19 @@ public readonly assetPublishing: string;
2094
2108
 
2095
2109
  - *Type:* string
2096
2110
 
2097
- IAM role ARN for the asset publishing stage.
2111
+ IAM role ARN for the asset publishing step.
2112
+
2113
+ ---
2114
+
2115
+ ##### `assetPublishingPerStage`<sup>Optional</sup> <a name="assetPublishingPerStage" id="projen-pipelines.GitlabIamRoleConfig.property.assetPublishingPerStage"></a>
2116
+
2117
+ ```typescript
2118
+ public readonly assetPublishingPerStage: {[ key: string ]: string};
2119
+ ```
2120
+
2121
+ - *Type:* {[ key: string ]: string}
2122
+
2123
+ IAM role ARN for the asset publishing step for a specific stage.
2098
2124
 
2099
2125
  ---
2100
2126
 
@@ -115,7 +115,8 @@ export declare abstract class CDKPipeline extends Component {
115
115
  protected renderInstallCommands(): string[];
116
116
  protected renderInstallPackageCommands(packageName: string, runPreInstallCommands?: boolean): string[];
117
117
  protected renderSynthCommands(): string[];
118
- protected getAssetUploadCommands(needsVersionedArtifacts: boolean): string[];
118
+ protected renderAssetUploadCommands(stageName?: string): string[];
119
+ protected renderAssemblyUploadCommands(): string[];
119
120
  protected renderDeployCommands(stageName: string): string[];
120
121
  protected renderDiffCommands(stageName: string): string[];
121
122
  protected createSafeStageName(name: string): string;