@eui/tools 5.0.0-rc.17 → 5.0.0-rc.18

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.
@@ -1 +1 @@
1
- 5.0.0-rc.17
1
+ 5.0.0-rc.18
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.0.0-rc.18 (2022-03-31)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **other:**
6
+ * added compositeType as exported gitlab variables - EUI-5632 [EUI-5632](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-5632) ([606a7916](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/606a791695f6697bfa34b14dd4ddf0e5a132e119))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 5.0.0-rc.17 (2022-03-31)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "5.0.0-rc.17",
3
+ "version": "5.0.0-rc.18",
4
4
  "tag": "next",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -452,9 +452,11 @@ module.exports.storeMetadata = (pkg, version, pkgMetadata, pkgCompositeDeps, dur
452
452
  }
453
453
 
454
454
 
455
- module.exports.exportPipelineVariables = (pkg) => {
455
+ module.exports.exportPipelineVariables = (pkg, compositeType) => {
456
456
  utils.tools.logBanner('EXPORT PIPELINE VARIABLES');
457
457
 
458
+ let variablesContent = '';
459
+
458
460
  return Promise.resolve()
459
461
  .then(() => {
460
462
  if (pkg.remote) {
@@ -470,11 +472,18 @@ module.exports.exportPipelineVariables = (pkg) => {
470
472
 
471
473
  utils.tools.logInfo(`appTarget generated : ${appTarget}`);
472
474
 
475
+ variablesContent += `export APP_TARGET=${appTarget}\n`;
476
+
477
+ if (compositeType) {
478
+ utils.tools.logInfo(`Exporting COMPOSITE_TYPE : ${compositeType}`);
479
+ variablesContent += `export COMPOSITE_TYPE=${compositeType}\n`;
480
+ }
481
+
473
482
  if (dryRun) {
474
483
  utils.tools.logWarning('dryRun...skipping export');
475
484
  } else {
476
485
  utils.tools.logInfo('Exporting appTarget variable');
477
- return utils.pipeline.setVariables(pkg.paths.rootDirectory, `export APP_TARGET=${appTarget}\n`);
486
+ return utils.pipeline.setVariables(pkg.paths.rootDirectory, variablesContent);
478
487
  }
479
488
  }
480
489
  })
@@ -178,7 +178,7 @@ module.exports.run = () => {
178
178
 
179
179
  // EXPORT ADDITIONAL PIPELINE VARIABLES
180
180
  .then(() => {
181
- return innerCommon.exportPipelineVariables(pkg);
181
+ return innerCommon.exportPipelineVariables(pkg, compositeType);
182
182
  })
183
183
 
184
184