@eui/tools 4.19.12 → 4.19.13

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
- 4.19.12
1
+ 4.19.13
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 4.19.13 (2022-02-22)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * added appTarget pipeline variable output for remote - EUI-4107 [EUI-4107](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-4107) ([3b0a5c83](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3b0a5c83c834a00ee9871ac4ab731c6cf29ab15f))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 4.19.12 (2022-02-22)
2
11
 
3
12
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "4.19.12",
3
+ "version": "4.19.13",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -359,6 +359,41 @@ module.exports.storeMetadata = (pkg, version, pkgMetadata, pkgCompositeDeps, dur
359
359
  }
360
360
 
361
361
 
362
+ module.exports.exportPipelineVariables = (pkg) => {
363
+ utils.tools.logBanner('EXPORT PIPELINE VARIABLES');
364
+
365
+ return Promise.resolve()
366
+ .then(() => {
367
+ if (pkg.remote) {
368
+ utils.tools.logTitle('Exporting pkg remote variables');
369
+
370
+ utils.tools.logInfo('Exporting APP_TARGET');
371
+
372
+ let appTarget = 'MWP_ONLY';
373
+
374
+ if (pkg.build && pkg.build.appTarget) {
375
+ appTarget = pkg.build.appTarget;
376
+ }
377
+
378
+ utils.tools.logInfo(`appTarget generated : ${appTarget}`);
379
+
380
+ if (dryRun) {
381
+ utils.tools.logWarning('dryRun...skipping export');
382
+ } else {
383
+ utils.tools.logInfo('Exporting appTarget variable');
384
+ return utils.pipeline.setVariables(pkg.paths.rootDirectory, `export APP_TARGET=${pkg.build.appTarget}\n`);
385
+ }
386
+ }
387
+ })
388
+
389
+ .catch((e) => {
390
+ throw e;
391
+ })
392
+ }
393
+
394
+
395
+
396
+
362
397
  module.exports.generateDiffReport = (pkg, newVersion) => {
363
398
  utils.tools.logBanner('GENERATE DIFF REPORT');
364
399
 
@@ -173,6 +173,12 @@ module.exports.run = () => {
173
173
  })
174
174
 
175
175
 
176
+ // EXPORT ADDITIONAL PIPELINE VARIABLES
177
+ .then(() => {
178
+ return innerCommon.exportPipelineVariables(pkg);
179
+ })
180
+
181
+
176
182
  // SEND SUCCESS NOTIFICATION
177
183
  .then(() => {
178
184
  return innerCommon.sendSuccessNotification(pkg, newVersion, pkgMetadata)